gtk-sharp0.0.0.0neutralGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.A factory for menus.
To use this class, make an array of
objects which describe a menu, then invoke
to generate the menu.
Gtk.ObjectGLib.IWrapperSystem.IDisposableMethodSystem.StringIf has been created by an item factory, returns the full path to it.
A .
The full path to if it has been created by an item factory, otherwise. This value is owned by GTK+ and must not be modified or freed.
The full path of a is the concatenation of the factory path specified in with the path specified in the from which the was created.
MethodGtk.ItemFactoryObtains the item factory from which a was created.
A .
The item factory from which was created, or .MethodSystem.IntPtrObtains the which was passed to .
A .
associated with the item factory from which was created, or if wasn't created by an item factory.
This data is available until the menu is popped down again.
MethodSystem.VoidInstalls an accelerator for in , that causes the activate event to be emitted it the accelerator is activated.
Widget to install an accelerator on.
The full path for the .
The accelerator group to install the accelerator in.
Key value of the accelerator.
Modifier combination of the acelerator.
This method can be used to make widgets participate in the accel saving/restoring functionality provided by and , even if they haven't been created by an item factory. The recommended API for this purpose are the and ; don't use in new code, since it is likely to be removed in the future.
MethodSystem.VoidDeletes the menu items which were created from the entries by the given item factory.
The length of .
An array of s.
MethodGtk.WidgetObtains the menu item which correponds to .
A (TODO: where is this enumerated?)
A MethodSystem.VoidDeletes the menu item which was created from by the given item factory.
A .
MethodSystem.VoidCreates an item for .
The to create an item for.
Data passed to the callback method of .
1 if the callback method of is of type , 2 if it is of type .
MethodGtk.WidgetObtains the which corresponds to .
A (TODO: where is this enumerated?)
A MethodGtk.WidgetObtains the menu item which corresponds to .
The path to the menu item.
The menu item for the given path, or if doesn't lead to a menu item.
If the corresponding to is a menu item which opens a submenum, then the item is returned. If you are interested in the submenum, use instead.
MethodSystem.VoidDeletes the menu item which was created for by the given item factory.
A path.
MethodSystem.IntPtrObtains the which was passed to . associated.
This data is available until the menu is popped down again.
MethodSystem.VoidCreates the menu items from the .
The length of .
An array of s whose members must be of type .
Data passed to the callback methods of all entries.
MethodGtk.WidgetObtains the which corresponds to .
The path to the .
The for the given path, or if doesn't lead to a .
If the corresponding to is a menu item which opens a submenu, then the submenu is returned. If you are interested in the menu item, use instead.
MethodSystem.VoidSets a method to be used for translating the path elements before they are displayed.
The delegate to be used to traslate path elements.
Data to pass to and .
A delegate to be called when the object is destroyed and when the translation is changed again.
MethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of ItemFactory, wrapping the C object.This is an internal constructor, and should not be used by user code.MethodSystem.VoidPops up the menu constructed form the item factory at (, ).
Data available for callbacks while the menu is posted.
A to be called on when the menu is unposted.
The x position.
The y position.
The mouse button which was pressed to initiate the popup.
The time at which the activation event ocurred.
Callbacks can access the while the menu is posted via and .
The 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, should be 0.
The should be the time stamp of the event that initiated the popup. If such a event is not available, use instead.
The operation of the and the is the same as the and for .
MethodSystem.VoidPops up the menu constructed form the item factory at (, ).
The x position.
The y position.
The mouse button which was pressed to initiate the popup.
The time at which the activation event ocurred.
The 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, should be 0.
The should be the time stamp of the event that initiated the popup. If such a event is not available, use instead.
The operation of the and the is the same as the and for .
PropertyGLib.GTypeGType Property.a Returns the native value for .MethodSystem.VoidInitializes a
The kind of menu to create; can be , , or
the factory path of the new item factory, a string of the form "<name>"
a to which the accelerators for the menu items will be added, or null to create a new one
ConstructorProtected Constructor.
a a Chain to this constructor if you have manually registered a native value for your subclass.ConstructorBasic constructor.
The kind of menu to create; can be , , or
the factory path of the new item factory, a string of the form "<name>"
a to which the accelerators for the menu items will be added, or null to create a new one
a ConstructorProtected constructor.a MethodGtk.ItemFactoryFinds an item factory which has been constructed using the
"<name>" prefix of as the path argument
building a new item factory.
a a , or MethodSystem.VoidCreates menu items from a set of entries.
a , the number of entries
an array of objects
MethodSystem.VoidCreates menu items from entries.
a , the number of menu items
a , a list of information about menu items
a , pointer to data that should be passed to
the callback functions of all entries
a FIXME: See bugzilla 70887.