GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> struct GtkItemFactory; void (*GtkPrintFunc) (gpointer func_data, const gchar *str); gchar* (*GtkTranslateFunc) (const gchar *path, gpointer func_data); void (*GtkItemFactoryCallback) (); void (*GtkItemFactoryCallback1) (gpointer callback_data, guint callback_action, GtkWidget *widget); void (*GtkItemFactoryCallback2) (GtkWidget *widget, gpointer callback_data, guint callback_action); struct GtkItemFactoryEntry; struct GtkItemFactoryItem; GtkItemFactory* gtk_item_factory_new (GtkType container_type, const gchar *path, GtkAccelGroup *accel_group); void gtk_item_factory_construct (GtkItemFactory *ifactory, GtkType container_type, const gchar *path, GtkAccelGroup *accel_group); void gtk_item_factory_parse_rc (const gchar *file_name); void gtk_item_factory_parse_rc_string (const gchar *rc_string); void gtk_item_factory_parse_rc_scanner (GScanner *scanner); void gtk_item_factory_add_foreign (GtkWidget *accel_widget, const gchar *full_path, GtkAccelGroup *accel_group, guint keyval, GdkModifierType modifiers); GtkItemFactory* gtk_item_factory_from_widget (GtkWidget *widget); gchar* gtk_item_factory_path_from_widget (GtkWidget *widget); GtkWidget* gtk_item_factory_get_item (GtkItemFactory *ifactory, const gchar *path); GtkWidget* gtk_item_factory_get_widget (GtkItemFactory *ifactory, const gchar *path); GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory, guint action); GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory, guint action); void gtk_item_factory_dump_items (GPatternSpec *path_pspec, gboolean modified_only, GtkPrintFunc print_func, gpointer func_data); void gtk_item_factory_dump_rc (const gchar *file_name, GPatternSpec *path_pspec, gboolean modified_only); void gtk_item_factory_print_func (gpointer FILE_pointer, const gchar *string); void gtk_item_factory_create_item (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type); void gtk_item_factory_create_items (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data); void gtk_item_factory_create_items_ac (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data, guint callback_type); void gtk_item_factory_delete_item (GtkItemFactory *ifactory, const gchar *path); void gtk_item_factory_delete_entry (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry); void gtk_item_factory_delete_entries (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries); void gtk_item_factory_popup (GtkItemFactory *ifactory, guint x, guint y, guint mouse_button, guint32 time); void gtk_item_factory_popup_with_data (GtkItemFactory *ifactory, gpointer popup_data, GtkDestroyNotify destroy, guint x, guint y, guint mouse_button, guint32 time); gpointer gtk_item_factory_popup_data (GtkItemFactory *ifactory); gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget); GtkItemFactory* gtk_item_factory_from_path (const gchar *path); void gtk_item_factory_create_menu_entries (guint n_entries, GtkMenuEntry *entries); void gtk_item_factories_path_delete (const gchar *ifactory_path, const gchar *path); void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory, GtkTranslateFunc func, gpointer data, GtkDestroyNotify notify); |
void (*GtkItemFactoryCallback1) (gpointer callback_data, guint callback_action, GtkWidget *widget); |
void (*GtkItemFactoryCallback2) (GtkWidget *widget, gpointer callback_data, guint callback_action); |
struct GtkItemFactoryEntry { gchar *path; gchar *accelerator; GtkItemFactoryCallback callback; guint callback_action; /* possible values: * NULL -> "<Item>" * "" -> "<Item>" * "<Title>" -> create a title item * "<Item>" -> create a simple item * "<CheckItem>" -> create a check item * "<ToggleItem>" -> create a toggle item * "<RadioItem>" -> create a radio item * <path> -> path of a radio item to link against * "<Separator>" -> create a separator * "<Branch>" -> create an item to hold sub items * "<LastBranch>" -> create a right justified item to hold sub items */ gchar *item_type; /* Extra data for some item types: * ImageItem -> pointer to inline pixbuf + inline pixbuf length * StockItem -> name of stock item */ gpointer extra_data; guint extra_data2; }; |
struct GtkItemFactoryItem { gchar *path; guint accelerator_key; guint accelerator_mods; guint modified : 1; guint in_propagation : 1; gchar *dummy; GSList *widgets; }; |
GtkItemFactory* gtk_item_factory_new (GtkType container_type, const gchar *path, GtkAccelGroup *accel_group); |
void gtk_item_factory_construct (GtkItemFactory *ifactory, GtkType container_type, const gchar *path, GtkAccelGroup *accel_group); |
void gtk_item_factory_add_foreign (GtkWidget *accel_widget, const gchar *full_path, GtkAccelGroup *accel_group, guint keyval, GdkModifierType modifiers); |
GtkWidget* gtk_item_factory_get_item (GtkItemFactory *ifactory, const gchar *path); |
GtkWidget* gtk_item_factory_get_widget (GtkItemFactory *ifactory, const gchar *path); |
GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory, guint action); |
GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory, guint action); |
void gtk_item_factory_dump_items (GPatternSpec *path_pspec, gboolean modified_only, GtkPrintFunc print_func, gpointer func_data); |
void gtk_item_factory_dump_rc (const gchar *file_name, GPatternSpec *path_pspec, gboolean modified_only); |
void gtk_item_factory_print_func (gpointer FILE_pointer, const gchar *string); |
void gtk_item_factory_create_item (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type); |
void gtk_item_factory_create_items (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data); |
void gtk_item_factory_create_items_ac (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data, guint callback_type); |
void gtk_item_factory_delete_item (GtkItemFactory *ifactory, const gchar *path); |
void gtk_item_factory_delete_entry (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry); |
void gtk_item_factory_delete_entries (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries); |
void gtk_item_factory_popup (GtkItemFactory *ifactory, guint x, guint y, guint mouse_button, guint32 time); |
void gtk_item_factory_popup_with_data (GtkItemFactory *ifactory, gpointer popup_data, GtkDestroyNotify destroy, guint x, guint y, guint mouse_button, guint32 time); |
gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget); |
void gtk_item_factory_create_menu_entries (guint n_entries, GtkMenuEntry *entries); |
void gtk_item_factories_path_delete (const gchar *ifactory_path, const gchar *path); |
void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory, GtkTranslateFunc func, gpointer data, GtkDestroyNotify notify); |