gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.A GtkMenu is a GtkMenuShell that implements a drop down menu.
A is a that implements a drop down menu consisting of a list of objects which can be navigated and activated by the user to perform application functions.
It is commonly dropped down by activating a in a or in another , it can also be popped up by activating a . Other composite widgets such as the can pop up a as well.
Gtk.MenuShellAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.VoidDetaches the menu from the widget to which it had been attached.
This function will call the detacher, provided when the function was called.
MethodSystem.VoidRemoves the menu from the screen.MethodSystem.VoidAttaches the menu to the widget and provides a detacher.
The that the menu will be attached to.
The user supplied callback function that will be called when the menu calls .
Attaches the menu to the widget and provides a callback function that will be invoked when the menu calls during its destruction.
MethodSystem.VoidDisplays a menu and makes it available for selection.
The menu shell containing the triggering menu item, or .
The menu item whose activation triggered the popup, or .
A user supplied function used to position the menu, or .
A user supplied data to be passed to func.
The mouse button which was pressed to initiate the event.
The time at which the activation event occurred.
Applications can use this function to display context-sensitive menus, and will typically supply for the , , and parameters. The default menu positioning function will position the menu at the current mouse cursor position.
The 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, button should be zero(0).
The parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use instead.
MethodSystem.VoidRepositions the menu according to its position function.MethodSystem.VoidMoves a to a new position within the .
The to move.
The new position to place . Positions are numbered from 0 to n-1.
MethodSystem.VoidSelects the specified menu item within the menu.
This is used by the and should not be used by anyone else.
MethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of Menu, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorA constructor.An instance of .PropertySystem.UInt32The GLib Type for Gtk.MenuThe GLib Type for the Gtk.Menu class.PropertyGtk.WidgetReturns the selected menu item from the menu.The that was last selected in the menu. If a selection has not yet been made, the first menu item is selected.
This is used by the .
PropertySystem.StringSets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed.
A valid accelerator path.
To be added: an object of type 'string'
The main purpose of this function is to spare the programmer the inconvenience of having to call on each menu item that should support runtime user changable accelerators. Instead, by just calling on their parent, each menu item of this menu, that contains a label describing its purpose, automatically gets an accel path assigned.
PropertyGtk.WidgetReturns the that the menu is attached to.The that the menu is attached to.PropertySystem.BooleanSets or obtains the tearoff state of the menu.
If , menu is displayed as a tearoff menu.
Returns if the menu is currently torn off.
A menu is normally displayed as drop down menu which persists as long as the menu is active. It can also be displayed as a tearoff menu which persists until it is closed or reattached.
PropertyGtk.AccelGroupSets or obtains the which holds global accelerators for the menu.
The to be associated with the menu.
The associated with the menu.
This accelerator group needs to also be added to all windows that this menu is being used in with , in order for those windows to support all the accelerators contained in this group.
PropertySystem.StringSets or obtains the title for the menu.
A string containing the title for the menu.
The title of the menu, or if the menu has no title set on it. This string is owned by the widget and should not be modified or freed.
The title is displayed when the menu is shown as a tearoff menu.
PropertySystem.StringTo be added
To be added: an object of type 'string'
To be added: an object of type 'string'To be addedConstructorInternal constructor
GLib type for the type
Creates a new instance of Menu, using the GLib-provided typeThis is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code.