gtk.cfg: Add some GTK_*() macros and the pod-type "GType"

This commit is contained in:
versat 2019-09-20 15:38:07 +02:00
parent 007b5d3e8d
commit 88a034e4f1
1 changed files with 34 additions and 0 deletions

View File

@ -96,6 +96,39 @@
<define name="GTK_TOGGLE_BUTTON(obj)" value="((GtkToggleButton*)(obj))"/>
<define name="GTK_WIDGET(widget)" value="((GtkWidget*)(widget))"/>
<define name="GTK_WINDOW(obj)" value="((GtkWindow*)(obj))"/>
<define name="GTK_CHECK_CAST" value="G_TYPE_CHECK_INSTANCE_CAST"/>
<define name="GTK_CHECK_CLASS_CAST" value="G_TYPE_CHECK_CLASS_CAST"/>
<define name="GTK_CHECK_TYPE" value="G_TYPE_CHECK_INSTANCE_TYPE"/>
<define name="GTK_CHECK_CLASS_TYPE" value="G_TYPE_CHECK_CLASS_TYPE"/>
<define name="GTK_CHECK_GET_CLASS" value="G_TYPE_INSTANCE_GET_CLASS"/>
<define name="GTK_FUNDAMENTAL_TYPE" value="G_TYPE_FUNDAMENTAL"/>
<define name="GTK_TYPE_MENU_SHELL" value="(gtk_menu_shell_get_type ())"/>
<define name="GTK_MENU_SHELL(obj)" value="(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell))"/>
<define name="GTK_MENU_SHELL_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass))"/>
<define name="GTK_IS_MENU_SHELL(obj)" value="(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL))"/>
<define name="GTK_IS_MENU_SHELL_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL))"/>
<define name="GTK_MENU_SHELL_GET_CLASS(obj)" value="(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass))"/>
<define name="GTK_TYPE_LIST_STORE" value="(gtk_list_store_get_type ())"/>
<define name="GTK_LIST_STORE(obj)" value="(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LIST_STORE, GtkListStore))"/>
<define name="GTK_LIST_STORE_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_STORE, GtkListStoreClass))"/>
<define name="GTK_IS_LIST_STORE(obj)" value="(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LIST_STORE))"/>
<define name="GTK_IS_LIST_STORE_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_STORE))"/>
<define name="GTK_LIST_STORE_GET_CLASS(obj)" value="(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LIST_STORE, GtkListStoreClass))"/>
<define name="GTK_TYPE_FILE_CHOOSER" value="(gtk_file_chooser_get_type ())"/>
<define name="GTK_FILE_CHOOSER(obj)" value="(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser))"/>
<define name="GTK_IS_FILE_CHOOSER(obj)" value="(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER))"/>
<define name="GTK_TYPE_SCROLLED_WINDOW" value="(gtk_scrolled_window_get_type ())"/>
<define name="GTK_SCROLLED_WINDOW(obj)" value="(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindow))"/>
<define name="GTK_SCROLLED_WINDOW_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass))"/>
<define name="GTK_IS_SCROLLED_WINDOW(obj)" value="(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLED_WINDOW))"/>
<define name="GTK_IS_SCROLLED_WINDOW_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLED_WINDOW))"/>
<define name="GTK_SCROLLED_WINDOW_GET_CLASS(obj)" value="(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass))"/>
<define name="GTK_TYPE_GRID" value="(gtk_grid_get_type ())"/>
<define name="GTK_GRID(obj)" value="(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_GRID, GtkGrid))"/>
<define name="GTK_GRID_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_GRID, GtkGridClass))"/>
<define name="GTK_IS_GRID(obj)" value="(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_GRID))"/>
<define name="GTK_IS_GRID_CLASS(klass)" value="(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_GRID))"/>
<define name="GTK_GRID_GET_CLASS(obj)" value="(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GRID, GtkGridClass))"/>
<!-- https://developer.gnome.org/glib/stable/glib-Type-Conversion-Macros.html -->
<define name="GINT_TO_POINTER(i)" value="((gpointer) (glong) (i))"/>
<define name="GPOINTER_TO_INT(p)" value="((gint) (glong) (p))"/>
@ -20004,4 +20037,5 @@
<podtype name="goffset" sign="s" size="8"/>
<podtype name="gintptr" sign="s"/>
<podtype name="guintptr" sign="u"/>
<podtype name="GType" sign="u"/>
</def>