gtk-sharp0.0.0.0neutralGtk# 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.ContainerAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.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.MethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of Toolbar, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorCreates a new toolbar.The newly-created 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 that stock icons in the toolbar shall have.
The icon size for the toolbar.PropertySystem.BooleanSets if the tooltips of a toolbar should be active or not.
set to to disable the tooltips, or to enable them.
Whether tooltips are enabled.PropertyGtk.ToolbarStyleAlters the view of toolbar to display either icons only, text only, or both.
The new style for toolbar.
The current style of toolbar.PropertyGtk.OrientationSets the of the toolbar to either or .
The orientation of the toolbar.
The orientation of the toolbar.EventGtk.StyleChangedHandlerUsed if you wish to perform an action when the orientation of a toolbar is 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.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 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 a Chain to this constructor if you have manually registered a native value for your subclass.PropertySystem.BooleanWhether to show an arrow if the toolbar doesn't fit.a 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.
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.
PropertyGtk.Container+ContainerChildAccessor for child property items
a child of this toolbar
a You can cast the returned object to to access its child properties.MethodGtk.WidgetDeprecated
a
a
a
a
a a Replaced by ToolItem API.MethodSystem.VoidTo be added
a
a To be added