From b6e4696bb281a7136476156e56614705505ad31e Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Tue, 18 Feb 2003 06:39:00 +0000 Subject: [PATCH] Documentation for Gtk.Toolbar, nearly done. svn path=/trunk/gtk-sharp/; revision=11672 --- doc/en/Gtk/Toolbar.xml | 224 ++++++++++++++++++++++------------------- 1 file changed, 120 insertions(+), 104 deletions(-) diff --git a/doc/en/Gtk/Toolbar.xml b/doc/en/Gtk/Toolbar.xml index ee0c3fa93..0b0d9262e 100644 --- a/doc/en/Gtk/Toolbar.xml +++ b/doc/en/Gtk/Toolbar.xml @@ -1,5 +1,5 @@ - + gtk-sharp 0.0.0.0 @@ -7,8 +7,19 @@ To be added - To be added - To be added + Create bars of buttons and other widgets. + + A toolbar 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 @@ -37,7 +48,8 @@ - To be added + + To be added: an object of type 'uint' To be added @@ -71,16 +83,16 @@ - To be added - To be added: an object of type 'Gtk.ToolbarChildType' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' - To be added: an object of type 'Gtk.Widget' - To be added + Adds a new element to the end of a toolbar. + A value of type that determines what widget will be. + a , or . + The element's label. + The element's tooltip. + Text used for context-sensitive help about this toolbar element. + a that provides pictorial representation of the element's function. + The function to be executed when the button is pressed. + The new toolbar element as a + If is , is used as the new element. If is , is used to determine the radio group for the new element. In all other cases, widget must be . @@ -97,13 +109,13 @@ - To be added - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' - To be added: an object of type 'Gtk.Widget' + Adds a new button to the beginning (top or left edges) of the given toolbar. + Text for the button label. + A string that appears when the user holds the mouse over this item. + Text used for context-sensitive help about this toolbar element. + A that should be used as the button's icon. + The function to be executed when the button is pressed. + The new toolbar element as a To be added @@ -123,15 +135,15 @@ - To be added - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' + Inserts a new item into the toolbar. You must specify the position in the toolbar where it will be inserted. + Text for the button label. + A string that appears when the user holds the mouse over this item. + Text used for context-sensitive help about this toolbar element. + A that should be used as the button's icon. + The function to be executed when the button is pressed. To be added: an object of type 'IntPtr' - To be added: an object of type 'int' - To be added: an object of type 'Gtk.Widget' + The number of widgets to insert this item after. + The new toolbar element as a . To be added @@ -143,7 +155,7 @@ - To be added + Adds a new space to the beginning of the toolbar. To be added @@ -155,7 +167,7 @@ - To be added + Unsets a toolbar style set with , so that user preferences will be used to determine the toolbar style. To be added @@ -167,7 +179,9 @@ - To be added + + Unsets toolbar icon size set with , so that user preferences will be used to determine the icon size. + To be added @@ -184,11 +198,11 @@ - To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'int' + Inserts a widget in the toolbar at the given position. + a to add to the toolbar. + The element's tooltip. + Used for context-sensitive help about this toolbar element. + The number of widgets to insert this widget after. To be added @@ -207,14 +221,14 @@ - To be added - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.SignalFunc' + Inserts a stock item at the specified position of the toolbar. If stock_id is not a known stock item ID, it's inserted verbatim, except that underscores used to mark mnemonics are removed. + The id of the stock item you want to insert + The text in the tooltip of the toolbar button + The private text of the tooltip + The callback called when the toolbar button is clicked. To be added: an object of type 'IntPtr' - To be added: an object of type 'int' - To be added: an object of type 'Gtk.Widget' + The position the button shall be inserted at. -1 means at the end. + The inserted widget To be added @@ -230,10 +244,10 @@ - To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' + Adds a widget to the end of the given toolbar. + A to add to the toolbar. + The element's tooltip. + Used for context-sensitive help about this toolbar element. To be added @@ -245,7 +259,7 @@ - To be added + Adds a new space to the end of the toolbar. To be added @@ -263,13 +277,13 @@ - To be added - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' - To be added: an object of type 'Gtk.Widget' + Adds a new button to the end (right or bottom edges) of the given toolbar. + The element's label. + The element's tooltip. + Text used for context-sensitive help about this toolbar element. + a that provides pictorial representation of the element's function. + The function to be executed when the button is pressed. + The new toolbar element as a To be added @@ -283,8 +297,8 @@ - To be added - To be added: an object of type 'int' + Removes a space from the specified position. + The index of the space to remove. To be added @@ -300,10 +314,10 @@ - To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' + Adds a widget to the beginning of the given toolbar. + a to add to the toolbar. + The element's tooltip. + Used for context-sensitive help about this toolbar element. To be added @@ -325,18 +339,20 @@ - To be added - To be added: an object of type 'Gtk.ToolbarChildType' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' + Inserts a new element in the toolbar at the given position. + A value of type that determines what widget will be. + a , or . + The element's label. + The element's tooltip. + Text used for context-sensitive help about this toolbar element. + a that provides pictorial representation of the element's function. + The function to be executed when the button is pressed. To be added: an object of type 'IntPtr' - To be added: an object of type 'int' - To be added: an object of type 'Gtk.Widget' - To be added + The number of widgets to insert this element after. + The new toolbar element as a + + If is , is used as the new element. If is , is used to determine the radio group for the new element. In all other cases, widget must be . + @@ -355,16 +371,16 @@ - To be added - To be added: an object of type 'Gtk.ToolbarChildType' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'string' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.SignalFunc' - To be added: an object of type 'Gtk.Widget' - To be added + Adds a new element to the beginning of a toolbar. + A value of type that determines what widget will be. + a , or . + The element's label. + The element's tooltip. + Text used for context-sensitive help about this toolbar element. + a that provides pictorial representation of the element's function. + The function to be executed when the button is pressed. + The new toolbar element as a + If is , is used as the new element. If is , is used to determine the radio group for the new element. In all other cases, widget must be . @@ -377,8 +393,8 @@ - To be added - To be added: an object of type 'int' + Inserts a new space in the toolbar at the specified position. + The number of widgets after which a space should be inserted. To be added @@ -402,7 +418,7 @@ - To be added + Internal constructor To be added: an object of type 'uint' To be added: an object of type 'Gtk.Toolbar' To be added @@ -416,7 +432,7 @@ - To be added + Internal constructor To be added: an object of type 'IntPtr' To be added: an object of type 'Gtk.Toolbar' To be added @@ -428,8 +444,8 @@ - To be added - To be added: an object of type 'Gtk.Toolbar' + Creates a new toolbar. + The newly-created toolbar. To be added @@ -455,9 +471,9 @@ - To be added - To be added: an object of type 'Gtk.IconSize' - To be added: an object of type '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've 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. To be added @@ -471,9 +487,9 @@ - To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + Sets 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. To be added @@ -487,9 +503,9 @@ - To be added - To be added: an object of type 'Gtk.ToolbarStyle' - To be added: an object of type 'Gtk.ToolbarStyle' + Alters the view of toolbar to display either icons only, text only, or both. + The new style for toolbar. + The current style of toolbar. To be added @@ -503,9 +519,9 @@ - To be added - To be added: an object of type 'Gtk.Orientation' - To be added: an object of type 'Gtk.Orientation' + Sets the orientation of the toolbar to either or . + The orientation of the toolbar. + The orientation of the toolbar. To be added @@ -515,7 +531,7 @@ - To be added + Used if you wish to perform an action when the orientation of a toolbar is changed. To be added @@ -525,8 +541,8 @@ - To be added - To be added + 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.