gtk-sharpGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Gtk.ContainerGtk.IOrientableGtk.IToolShellCreate 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 .
ConstructorCreates a new toolbar.Constructor
Pointer to the C object.
Internal constructorThis is an internal constructor, and should not be used by user code.PropertyPango.EllipsizeModeTo be added.To be added.To be added.EventGLib.Signal("focus-home-or-end")Gtk.FocusHomeOrEndHandlerTo be added.To be added.MethodSystem.Int32
a
a
Returns the position corresponding to the indicated point on
the toolbar.
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.
MethodSystem.Int32
a
Returns the position of on the toolbar,
starting from 0.
a
It is an error if is not a child of
the toolbar.
MethodGtk.ToolItem
a Returns the th item on the toolbar,
or if the toolbar does not contain an
th item.a PropertyGtk.IconSizeTo be added.To be added.To be added.PropertyGtk.OrientationTo be added.To be added.To be added.PropertyGtk.ReliefStyleTo be added.To be added.To be added.PropertyGtk.ToolbarStyleTo be added.To be added.To be added.PropertyGLib.GTypeGType Property.a Returns the native value for .PropertyGLib.Property("icon-size")Gtk.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.PropertyGLib.Property("icon-size-set")System.BooleanIndicates if an Icon size is set.a .MethodSystem.Void
a
a
Insert a into the toolbar at position
.
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.
PropertyGtk.Container+ContainerChild
To be added.
To be added.To be added.To be added.PropertySystem.Int32The number of items on the toolbar.a MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideFocusHomeOrEnd", Type=typeof(Gtk.Toolbar))System.Boolean
To be added.
Default handler for the event.To be added.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideOrientationChanged", Type=typeof(Gtk.Toolbar))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverridePopupContextMenu", Type=typeof(Gtk.Toolbar))System.Boolean
a
a
a Default handler for the event.a Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideStyleChanged", Type=typeof(Gtk.Toolbar))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.PropertyGLib.Property("orientation")Gtk.OrientationSets the of the toolbar to either or .The orientation of the toolbar.EventGLib.Signal("orientation-changed")Gtk.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.EventGLib.Signal("popup-context-menu")Gtk.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.VoidTo be added.To be added.PropertyGtk.ReliefStyleThe relief style of buttons on the toolbar.a MethodSystem.Void
a
a To be addedTo be addedPropertyGLib.Property("show-arrow")System.BooleanWhether to show an arrow if the toolbar doesn't fit.a PropertyGtk.ToolbarStyleTo be added.To be added.To be added.EventGLib.Signal("style-changed")Gtk.StyleChangedHandlerUsed if you wish to perform an action when the orientation of a toolbar is changed.PropertySystem.SingleTo be added.To be added.To be added.PropertyGtk.OrientationTo be added.To be added.To be added.PropertyGtk.SizeGroupTo be added.To be added.To be added.PropertyGLib.Property("toolbar-style")Gtk.ToolbarStyleAlters the view of toolbar to display either icons only, text only, or both.The current style of toolbar.MethodSystem.Void
Unsets toolbar icon size set with .
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.