mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
c3dde05d33
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.
25 lines
571 B
C
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__ */
|