gtk/gdk/gdkdragsurfaceprivate.h
Ivan Molodetskikh c3dde05d33 dragsurface: Add compute-size signal
Similarly to GdkToplevel, GdkDragSurface's compute-size should be called
by backends to query the current surface size, and should be connected
to by widget implementations (like GtkDragIcon) to report the current
size.

GdkDragSurface-backed widgets are not parented to an existing widget,
unlike popovers, and like toplevels. This means that there's nobody to
actively call gdk_drag_surface_present() to update the size, and
GdkDragSurface should do it on its own, just like GdkToplevel.
2023-03-14 19:41:44 -07:00

25 lines
571 B
C

#ifndef __GDK_DRAG_SURFACE_PRIVATE_H__
#define __GDK_DRAG_SURFACE_PRIVATE_H__
#include "gdkdragsurface.h"
#include "gdkdragsurfacesize.h"
G_BEGIN_DECLS
struct _GdkDragSurfaceInterface
{
GTypeInterface g_iface;
gboolean (* present) (GdkDragSurface *drag_surface,
int width,
int height);
};
void gdk_drag_surface_notify_compute_size (GdkDragSurface *surface,
GdkDragSurfaceSize *size);
G_END_DECLS
#endif /* __GDK_DRAG_SURFACE_PRIVATE_H__ */