GObject.Object
GObject.InitiallyUnowned
Gtk.Object
Gtk.ItemFactory
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkItemFactory |
Class : | ItemFactory |
Extends: | Gtk.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
accel_group : Gtk.AccelGroup
read only
|
Gtk.ItemFactory | |
flags : Number
read only
|
Gtk.Object | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
items : Array
read only
|
Gtk.ItemFactory | |
object : Gtk.Object
read only
|
Gtk.ItemFactory | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
path : String
read only
|
Gtk.ItemFactory | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
GObject.InitiallyUnowned | |
translate_data : void*
read only
|
Gtk.ItemFactory | |
translate_func : [object Object]
read only
|
Gtk.ItemFactory | |
translate_notify : [object Object]
read only
|
Gtk.ItemFactory | |
user_data : void*
|
Gtk.Object | |
widget : Gtk.Widget
read only
|
Gtk.ItemFactory |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.ItemFactory
(Object properties)
Create a new Gtk.ItemFactory
Create a new Gtk.ItemFactory
|
||
new Gtk.ItemFactory.c_new
(Number container_type, String path, AccelGroup accel_group)
:
Gtk.ItemFactory
Create a new Gtk.ItemFactory
Create a new Gtk.ItemFactory
|
||
Gtk.ItemFactory.add_foreign
(Widget accel_widget, String full_path, AccelGroup accel_group, Number keyval, ModifierType modifiers)
:
none
Installs an accelerator for accel_widget in accel_group, that causes the ::activate signal to be emitted if the accelerator is activated.
Installs an accelerator for accel_widget in accel_group, that causes the ::activate signal to be emitted if the accelerator is activated. This function can be used to make widgets participate in the accel saving/restoring functionality provided by gtk_accel_map_save() and gtk_accel_map_load(), even if they haven't been created by an item factory. gtk_menu_item_set_accel_path() and gtk_widget_set_accel_path(); don't use gtk_item_factory_add_foreign() in new code, since it is likely to be removed in the future.
|
Gtk.ItemFactory | |
Creates the menu items from the entries.
Creates the menu items from the entries.
|
Gtk.ItemFactory | |
Finds an item factory which has been constructed using the
Finds an item factory which has been constructed using the
|
Gtk.ItemFactory | |
Obtains the item factory from which a widget was created.
Obtains the item factory from which a widget was created.
|
Gtk.ItemFactory | |
If widget has been created by an item factory, returns the full path to it.
If widget has been created by an item factory, returns the full path to it. (The full path of a widget is the concatenation of the factory path specified in gtk_item_factory_new() with the path specified in the GtkItemFactoryEntry from which the widget was created.)
|
Gtk.ItemFactory | |
Obtains the popup_data which was passed to gtk_item_factory_popup_with_data().
Obtains the popup_data which was passed to gtk_item_factory_popup_with_data(). This data is available until the menu is popped down again.
|
Gtk.ItemFactory | |
Initializes an item factory.
Initializes an item factory.
|
Gtk.ItemFactory | |
Creates an item for entry.
Creates an item for entry.
|
Gtk.ItemFactory | |
Creates the menu items from the entries.
Creates the menu items from the entries.
|
Gtk.ItemFactory | |
create_items_ac
(Number n_entries, ItemFactoryEntry entries, void* callback_data, Number callback_type)
:
none
Creates the menu items from the entries.
Creates the menu items from the entries.
|
Gtk.ItemFactory | |
delete_entries
(Number n_entries, ItemFactoryEntry entries)
:
none
Deletes the menu items which were created from the entries by the given item factory.
Deletes the menu items which were created from the entries by the given item factory.
|
Gtk.ItemFactory | |
delete_entry
(ItemFactoryEntry entry)
:
none
Deletes the menu item which was created from entry by the given item factory.
Deletes the menu item which was created from entry by the given item factory.
|
Gtk.ItemFactory | |
delete_item
(String path)
:
none
Deletes the menu item which was created for path by the given item factory.
Deletes the menu item which was created for path by the given item factory.
|
Gtk.ItemFactory | |
destroy
()
:
none
|
Gtk.Object | |
Gtk.Object | ||
Gtk.Object | ||
get_item
(String path)
:
Gtk.Widget
|
Gtk.ItemFactory | |
get_item_by_action
(Number action)
:
Gtk.Widget
Obtains the menu item which was constructed from the first GtkItemFactoryEntry with the given action.
Obtains the menu item which was constructed from the first GtkItemFactoryEntry with the given action.
|
Gtk.ItemFactory | |
get_user_data
()
:
void*
|
Gtk.Object | |
get_widget
(String path)
:
Gtk.Widget
Obtains the widget which corresponds to path.
Obtains the widget which corresponds to path. If the widget corresponding to path is a menu item which opens a submenu, then the submenu is returned. If you are interested in the menu item, use gtk_item_factory_get_item() instead.
|
Gtk.ItemFactory | |
get_widget_by_action
(Number action)
:
Gtk.Widget
Obtains the widget which was constructed from the GtkItemFactoryEntry with the given action.
Obtains the widget which was constructed from the GtkItemFactoryEntry with the given action. If there are multiple items with the same action, the result is undefined.
|
Gtk.ItemFactory | |
Pops up the menu constructed from the item factory at (x, y).
Pops up the menu constructed from the item factory at (x, y). The mouse_button parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, The time_ parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use gtk_get_current_event_time() instead. The operation of the mouse_button and the time_ parameter is the same as the button and activation_time parameters for gtk_menu_popup().
|
Gtk.ItemFactory | |
popup_data
()
:
void*
Obtains the popup_data which was passed to gtk_item_factory_popup_with_data().
Obtains the popup_data which was passed to gtk_item_factory_popup_with_data(). This data is available until the menu is popped down again.
|
Gtk.ItemFactory | |
popup_with_data
(void* popup_data, Function destroy, Number x, Number y, Number mouse_button, Number time_)
:
none
Pops up the menu constructed from the item factory at (x, y).
Pops up the menu constructed from the item factory at (x, y). Callbacks can access the popup_data while the menu is posted via gtk_item_factory_popup_data() and gtk_item_factory_popup_data_from_widget(). The mouse_button parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, The time_ parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use gtk_get_current_event_time() instead. The operation of the mouse_button and the time_ parameters is the same as the button and activation_time parameters for gtk_menu_popup().
|
Gtk.ItemFactory | |
remove_data
(String key)
:
none
|
Gtk.Object | |
remove_data_by_id
(Number data_id)
:
none
|
Gtk.Object | |
remove_no_notify
(String key)
:
none
|
Gtk.Object | |
remove_no_notify_by_id
(Number key_id)
:
none
|
Gtk.Object | |
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
Sets a function to be used for translating the path elements before they are displayed.
Sets a function to be used for translating the path elements before they are displayed.
|
Gtk.ItemFactory | |
set_user_data
(void* data)
:
none
|
Gtk.Object | |
sink
()
:
none
|
Gtk.Object |
Event | Defined By | |
---|---|---|
destroy (Object self)
:
none
|
Gtk.Object |