gtk-sharp 2.0.0.0 Gtk# 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.Container System.Reflection.DefaultMember(MemberName="Item") Method System.Void Deprecated. Adds a new space to the beginning of the toolbar. Method System.Void Unsets a toolbar style set with . Unsets a toolbar style set with , so that user preferences will be used to determine the toolbar style. Method System.Void Unsets toolbar icon size set with . Method System.Void Deprecated. 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. Method System.Void Deprecated. 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. Method System.Void Deprecated. Adds a new space to the end of the toolbar. Method System.Void Deprecated. The index of the space to remove. Removes a space from the specified position. Method System.Void Deprecated. 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. Method System.Void Deprecated. 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. Constructor Internal constructor Pointer to the C object. This is an internal constructor, and should not be used by user code. Constructor Creates a new toolbar. Property Gtk.IconSize This 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. Property System.Boolean Sets if the tooltips of a toolbar should be active or not. Whether tooltips are enabled. Property Gtk.ToolbarStyle Alters the view of toolbar to display either icons only, text only, or both. The current style of toolbar. GLib.Property(Name="toolbar_style") Property Gtk.Orientation Sets the of the toolbar to either or . The orientation of the toolbar. GLib.Property(Name="orientation") Event Gtk.StyleChangedHandler Used if you wish to perform an action when the orientation of a toolbar is changed. GLib.Signal(CName="style-changed") Event Gtk.OrientationChangedHandler Used 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") Property GLib.GType GType Property. a Returns the native value for . Method System.Void Default handler for the event. a Override this method in a subclass to provide a default handler for the event. Method System.Void Default handler for the event. a Override this method in a subclass to provide a default handler for the event. Method Gtk.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. Method Gtk.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. Method Gtk.Widget Deprecated. a a a a a a Method Gtk.Widget Deprecated. a a a a a a a Method Gtk.Widget Deprecated. a a a a a a a a Method Gtk.Widget Deprecated. a a a a a a Method Gtk.Widget Deprecated. a a a a a a a a Constructor Protected Constructor. a Chain to this constructor if you have manually registered a native value for your subclass. System.Obsolete(Message=null, IsError=False) Property System.Boolean Whether to show an arrow if the toolbar doesn't fit. a GLib.Property(Name="show_arrow") Property Gtk.ReliefStyle The relief style of buttons on the toolbar. a Property System.Int32 The number of items on the toolbar. a Event Gtk.PopupContextMenuHandler Emitted 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") Method System.Boolean Default handler for the event. a a a a Override this method in a subclass to provide a default handler for the event. Method Gtk.ToolItem Returns the th item on the toolbar, or if the toolbar does not contain an th item. a a Method System.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. Method System.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. Method System.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. Property System.Int32 The number of items in the toolbar. The number of itesm. Method Gtk.Widget Deprecated a a a a a a Replaced by ToolItem API. Method System.Void To be added a a To be added