index
gtk-- homepage



Description:
Gtk_ItemFactory

#include <gtk--/itemfactory.h>
Base classes: Gtk_Object
Derived by: Gtk_ItemFactory_Menu Gtk_ItemFactory_MenuBar Gtk_ItemFactory_OptionMenu



Properties:

NameTypeGetSetDescription
object GtkObject      
path string      
accel_group GtkAccelGroup*      
widget Gtk_Widget*      
widgets_by_action GSList*      
translate_func GtkTranslateFunc      
translate_data gpointer      
translate_notify GtkDestroyNotify    



Public member index:


Gtk_ItemFactory(GtkType type,const string &path,Gtk_AccelGroup &_accel_group);
Gtk_ItemFactory(GtkType type,const string &path);
Gtk_ItemFactory(GtkItemFactory *castitem);
~Gtk_ItemFactory();
static void parse_rc(const string &file_name);
static void parse_rc_string(const string &rc_string);
static void parse_rc_scanner(GScanner *scanner);
static Gtk_ObjectHandle <Gtk_ItemFactory > from_widget(const Gtk_Widget &widget);
static string path_from_widget(const Gtk_Widget &widget);
static void dump_items(GtkPatternSpec *path_pspec,bool modified_only,GtkPrintFunc print_func,gpointer func_data);
static void dump_rc(const string &file_name,GtkPatternSpec *path_pspec,bool modified_only);
static void print_func(FILE *fp,const string &str);
void create_items(guint n_entries,GtkItemFactoryEntry *entries,gpointer callback_data);
template <class RECEIVER,class ARG_TYPE > Gtk_Widget *create_item(const string &path,const _gtk_string &accelerator,const string &item_type,RECEIVER *target_widget,void (RECEIVER ::*target_method)(ARG_TYPE),ARG_TYPE target_method_arg);
Gtk_Widget *create_item(const string &path,const _gtk_string &accelerator,const string &item_type,const ItemFactoryConnectorBase &connector);
Gtk_Widget *create_item(const string &path,const _gtk_string &accelerator,const string &item_type,void (*target_func)());
Gtk_ObjectHandle <Gtk_Widget > get_widget_by_action(guint action)const;
Gtk_ObjectHandle <Gtk_Widget > get_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_Menu > get_menu_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_MenuBar > get_menubar_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_MenuItem > get_menuitem_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_CheckMenuItem > get_checkmenuitem_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_RadioMenuItem > get_radiomenuitem_widget(const string &path)const;
Gtk_ObjectHandle <Gtk_OptionMenu > get_optionmenu_widget(const string &path)const;
void delete_item(const string &path);
void delete_entry(GtkItemFactoryEntry *entry);
void delete_entries(guint n_entries,GtkItemFactoryEntry *entries);
void popup(guint x,guint y,guint mouse_button,guint32 time);
void popup_with_data(gpointer popup_data,GtkDestroyNotify destroy,guint x,guint y,guint mouse_button,guint32 time);
FIXME : 'destroy' should be a method pointer

gpointer popup_data();
gpointer popup_data_from_widget(const Gtk_Widget *widget);
static gpointer popup_data_from_widget(const Gtk_Widget &widget);
void set_translate_func(GtkTranslateFunc func,gpointer data,GtkDestroyNotify notify);
static Gtk_ObjectHandle <Gtk_ItemFactory > from_path(const string &path);
static void create_menu_entries(guint n_entries,GtkMenuEntry *entries);
static void path_delete(const string &ifactory_path,const string &path);
Gtk_Widget *getGtk_MenuItemFromGtkWidget(GtkWidget *w);
const Gtk_AccelGroup *get_accel_group();
GtkItemFactory *gtkobj();
const GtkItemFactory *gtkobj()const;
static bool isGtkItemFactory(Gtk_Object *checkcast);
Protected member index:


virtual void *get_parent_class();
Private member index:


GtkType get_type();

Public member details:


Protected member details:


Private member details:



Examples:





(pages generated by PERCEPS -script.)