@@ -74,6 +74,8 @@ typedef void GtkGrid;
|
||||
typedef void GtkColorButton;
|
||||
typedef void GtkColorChooser;
|
||||
typedef void GtkSpinButton;
|
||||
typedef void GdkMonitor;
|
||||
typedef void GdkScreen;
|
||||
|
||||
typedef int gboolean;
|
||||
typedef int gint;
|
||||
@@ -142,14 +144,14 @@ typedef enum {
|
||||
PANGO_ELLIPSIZE_END = 3
|
||||
} PangoEllipsizeMode;
|
||||
|
||||
struct GdkRectangle {
|
||||
typedef struct _GdkRectangle {
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
} GdkRectangle;
|
||||
|
||||
typedef struct GdkRectangle GtkAllocation;
|
||||
typedef struct _GdkRectangle GtkAllocation;
|
||||
|
||||
#define G_VALUE_INIT { 0, { { 0 } } }
|
||||
|
||||
@@ -570,6 +572,14 @@ typedef struct _GdkEventVisibility
|
||||
GdkVisibilityState state;
|
||||
} GdkEventVisibility;
|
||||
|
||||
typedef struct _GList {
|
||||
gpointer data;
|
||||
gpointer next;
|
||||
gpointer prev;
|
||||
} GList;
|
||||
|
||||
typedef void GListModel;
|
||||
|
||||
#define G_TYPE_FUNDAMENTAL_SHIFT (2)
|
||||
#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
|
||||
#define G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6)
|
||||
@@ -693,6 +703,15 @@ DECL(GtkWidget*, gtk_dialog_get_content_area, (GtkDialog* dialog ))
|
||||
DECL(gboolean, gtk_combo_box_set_active_id, ( GtkComboBox* combo_box, const gchar* active_id ))
|
||||
DECL(const gchar*, gtk_combo_box_get_active_id, (GtkComboBox* combo_box))
|
||||
|
||||
// Gdk Monitor/Screen
|
||||
|
||||
DECL(GdkDisplay*, gdk_display_get_default, (void))
|
||||
DECL(int, gdk_display_get_n_monitors, (GdkDisplay* display))
|
||||
DECL(GdkMonitor*, gdk_display_get_monitor, (GdkDisplay* display, int monitor_num))
|
||||
DECL(void, gdk_monitor_get_geometry, (GdkMonitor* monitor, GdkRectangle* geometry))
|
||||
DECL(GList*, gdk_screen_get_window_stack, (GdkScreen* screen))
|
||||
DECL(GdkScreen*, gdk_screen_get_default, (void))
|
||||
|
||||
// GObject / GValue
|
||||
DECL(void, g_object_unref, (GObject* object))
|
||||
DECL(void, g_object_ref, (GObject* object))
|
||||
|
||||
Reference in New Issue
Block a user