gtk-sharp2.6.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Create bars of buttons and other widgets.A is created with a call to .
Buttons with text and/or images are added with ,
,
and .
Any of , , or an arbitrary widget can be added to the toolbar with
,
,
and .
Widgets can be visibly grouped by adding gaps between widgets using , , and .
Gtk.ContainerSystem.Reflection.DefaultMember(MemberName="Item")MethodSystem.VoidDeprecated.Adds a new space to the beginning of the toolbar.MethodSystem.VoidUnsets a toolbar style set with .Unsets a toolbar style set with , so that user preferences will be used to determine the toolbar style.MethodSystem.Void
Unsets toolbar icon size set with .
MethodSystem.VoidDeprecated.
a to add to the toolbar.
The tooltip for the element.
Used for context-sensitive help about this toolbar element.
The number of widgets to insert this widget after.
Inserts a widget in the toolbar at the given position.MethodSystem.VoidDeprecated.
A to add to the toolbar.
The tooltip for the element.
Used for context-sensitive help about this toolbar element.
Adds a widget to the end of the given toolbar.MethodSystem.VoidDeprecated.Adds a new space to the end of the toolbar.MethodSystem.VoidDeprecated.
The index of the space to remove.
Removes a space from the specified position.MethodSystem.VoidDeprecated.
a to add to the toolbar.
The tooltip for the element.
Used for context-sensitive help about this toolbar element.
Adds a widget to the beginning of the given toolbar.MethodSystem.VoidDeprecated. Do not use.
The number of widgets after which a space should be inserted.
Inserts a new space in the toolbar at the specified position.ConstructorInternal constructor
Pointer to the C object.
This is an internal constructor, and should not be used by user code.ConstructorCreates a new toolbar.PropertyGtk.IconSizeThis function sets the size of stock icons in the toolbar. You can call it both before you add the icons and after they have been added. The size you set will override user preferences for the default icon size.The icon size for the toolbar.PropertySystem.BooleanSets if the tooltips of a toolbar should be active or not.Whether tooltips are enabled.PropertyGtk.ToolbarStyleAlters the view of toolbar to display either icons only, text only, or both.The current style of toolbar.GLib.Property(Name="toolbar_style")PropertyGtk.OrientationSets the of the toolbar to either or .The orientation of the toolbar.GLib.Property(Name="orientation")EventGtk.StyleChangedHandlerUsed if you wish to perform an action when the orientation of a toolbar is changed.GLib.Signal(CName="style-changed")EventGtk.OrientationChangedHandlerUsed if you wish to perform an action when ever the style of a toolbar is adjusted.For example, this would be a useful signal to connect to if you want to display more items on the toolbar when it is in icon-only mode; each item takes less space on the bar.GLib.Signal(CName="orientation-changed")PropertyGLib.GTypeGType Property.a Returns the native value for .MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodGtk.Widget
This method is deprecated and should not be used in new code.
Adds a new button to the beginning of the toolbar (left or top, depending on toolbar orientation).
If type == , widget is used as the new element. If type == , widget is used to determine the radio group for the new element. In all other cases, widget must be NULL.
a , the type of widget to add
a , the widget itself
a , a label for the widget
a , simple tooltip text
a , context-sensitive detailed help
a , the icon to use for this widget
a , a callback function to use when the new widget is touched.
a To be added.MethodGtk.Widget
This method is deprecated and should not be used in new code.
Adds a new button to the beginning of the toolbar (left or top, depending on toolbar orientation).
If type == , widget is used as the new element. If type == , widget is used to determine the radio group for the new element. In all other cases, widget must be NULL.
a , the type of widget to add
a , the widget itself
a , a label for the widget
a , simple tooltip text
a , context-sensitive detailed help
a , the icon to use for this widget
a , a callback function to use when the new widget is touched.
a , data to pass to the callback.
a , the number of toolbar widgets to insert this element after.
a , the new toolbar element.MethodGtk.WidgetDeprecated.
a
a
a
a
a a MethodGtk.WidgetDeprecated.
a
a
a
a
a
a a MethodGtk.WidgetDeprecated.
a
a
a
a
a
a
a a MethodGtk.WidgetDeprecated.
a
a
a
a
a a MethodGtk.WidgetDeprecated.
a
a
a
a
a
a
a a ConstructorProtected Constructor.
a Chain to this constructor if you have manually registered a native value for your subclass.System.Obsolete(Message=null, IsError=False)PropertySystem.BooleanWhether to show an arrow if the toolbar doesn't fit.a GLib.Property(Name="show_arrow")PropertyGtk.ReliefStyleThe relief style of buttons on the toolbar.a PropertySystem.Int32The number of items on the toolbar.a EventGtk.PopupContextMenuHandlerEmitted when the user right-clicks the toolbar or uses the
keybinding to display a popup menu.
Application developers should handle this signal if they want
to display a context menu on the toolbar.
GLib.Signal(CName="popup_context_menu")MethodSystem.BooleanDefault handler for the event.
a
a
a a Override this method in a subclass to provide a default handler for the event.MethodGtk.ToolItemReturns the th item on the toolbar,
or if the toolbar does not contain an
th item.
a a MethodSystem.Void
Insert a into the toolbar at position
.
a
a
If is 0 the item is prepended to the start
of the toolbar.
If is negative, the item is appended to the
end of the toolbar.
MethodSystem.Int32
Returns the position of on the toolbar,
starting from 0.
a a
It is an error if is not a child of
the toolbar.
MethodSystem.Int32
Returns the position corresponding to the indicated point on
the toolbar.
a
a a
This is useful when dragging items to the toolbar:
this function returns the position a new item should be
inserted. and are in
toolbar coordinates.
PropertySystem.Int32The number of items in the toolbar.The number of itesm.MethodGtk.WidgetDeprecated
a
a
a
a
a a Replaced by ToolItem API.MethodSystem.VoidTo be added
a
a To be added