gtk2/gdk/gdkpopupprivate.h
Matthias Clasen aee8a02fc8 Introduce GdkPopup
This is a new interface for popup surfaces.
2020-03-11 19:35:55 -04:00

36 lines
977 B
C

#ifndef __GDK_POPUP_PRIVATE_H__
#define __GDK_POPUP_PRIVATE_H__
#include "gdkpopup.h"
G_BEGIN_DECLS
struct _GdkPopupInterface
{
GTypeInterface g_iface;
gboolean (* present) (GdkPopup *popup,
int width,
int height,
GdkPopupLayout *layout);
GdkGravity (* get_surface_anchor) (GdkPopup *popup);
GdkGravity (* get_rect_anchor) (GdkPopup *popup);
int (* get_position_x) (GdkPopup *popup);
int (* get_position_y) (GdkPopup *popup);
};
typedef enum
{
GDK_POPUP_PROP_PARENT,
GDK_POPUP_PROP_AUTOHIDE,
GDK_POPUP_NUM_PROPERTIES
} GdkPopupProperties;
guint gdk_popup_install_properties (GObjectClass *object_class,
guint first_prop);
G_END_DECLS
#endif /* __GDK_POPUP_PRIVATE_H__ */