|
|
|
|
Etk_Toolbar
Detailed Description
The Etk_Toolbar is a widget that can contain widgets, mainly buttons, packed in one direction (horizontal of vertical).
Some toolbar description here
- Object Hierarchy:
-
- Properties:
- "orientation": The orientation of the toolbar, can be ETK_TOOLBAR_HORIZ or ETK_TOOLBAR_VERT.
Type: Integer (Etk_Toolbar_Orientation)Access: Read/WriteDefault Value: ETK_TOOLBAR_HORIZ
- "style": The buttons look in the toolbar, can be one of ETK_BUTTON_ICON, ETK_BUTTON_TEXT, ETK_BUTTON_BOTH_HORIZ or ETK_BUTTON_BOTH_VERT.
Type: Integer (Etk_Button_Style)Access: Read/WriteDefault Value: ETK_TOOLBAR_BOTH_VERT
- "stock-size": The size of the stock-icons used by buttons.
Type: Integer (Etk_Stock_Size)Access: Read/WriteDefault Value: ETK_STOCK_MEDIUM
|
Data Structures |
struct | Etk_Toolbar |
| [Widget] A widget that can contain widgets, mainly buttons, packed in one direction More...
|
Defines |
#define | ETK_TOOLBAR_TYPE (etk_toolbar_type_get()) |
#define | ETK_TOOLBAR(obj) (ETK_OBJECT_CAST((obj), ETK_TOOLBAR_TYPE, Etk_Toolbar)) |
#define | ETK_IS_TOOLBAR(obj) (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOLBAR_TYPE)) |
Enumerations |
enum | Etk_Toolbar_Orientation {
ETK_TOOLBAR_HORIZ,
ETK_TOOLBAR_VERT
} |
| The orientation of a toolbar. More...
|
enum | Etk_Toolbar_Style {
ETK_TOOLBAR_DEFAULT,
ETK_TOOLBAR_ICON,
ETK_TOOLBAR_TEXT,
ETK_TOOLBAR_BOTH_HORIZ,
ETK_TOOLBAR_BOTH_VERT
} |
| The style of the toolbar's buttons (icon, text, both vertically, both horizontally). More...
|
Functions |
Etk_Type * | etk_toolbar_type_get (void) |
| Gets the type of an Etk_Toolbar.
|
Etk_Widget * | etk_toolbar_new (void) |
| Creates a new toolbar (horizontal by default).
|
void | etk_toolbar_append (Etk_Toolbar *toolbar, Etk_Widget *widget, Etk_Box_Group group) |
| Appends an item to the start of the toolbar.
|
void | etk_toolbar_prepend (Etk_Toolbar *toolbar, Etk_Widget *widget, Etk_Box_Group group) |
| Prepends an item to the end of the toolbar.
|
void | etk_toolbar_insert_at (Etk_Toolbar *toolbar, Etk_Widget *widget, Etk_Box_Group group, int pos) |
| Adds an item to the toolbar at a specified position.
|
void | etk_toolbar_orientation_set (Etk_Toolbar *toolbar, Etk_Toolbar_Orientation orientation) |
| Sets the toolbar's orientation (horizontal or vertical).
|
Etk_Toolbar_Orientation | etk_toolbar_orientation_get (Etk_Toolbar *toolbar) |
| Gets the toolbar's orientation (horizontal or vertical).
|
void | etk_toolbar_style_set (Etk_Toolbar *toolbar, Etk_Toolbar_Style style) |
| Sets the style of toolbar's tool-buttons (icon, text, both vertically, both horizontally).
|
Etk_Toolbar_Style | etk_toolbar_style_get (Etk_Toolbar *toolbar) |
| Gets the style of toolbar's tool-buttons (icon, text, both vertically, both horizontally).
|
void | etk_toolbar_stock_size_set (Etk_Toolbar *toolbar, Etk_Stock_Size size) |
| Sets the stock-size of the toolbar's tool-buttons.
|
Etk_Stock_Size | etk_toolbar_stock_size_get (Etk_Toolbar *toolbar) |
| Gets the stock-size of the toolbar's tool-buttons.
|
Define Documentation
#define ETK_TOOLBAR_TYPE (etk_toolbar_type_get()) |
Gets the type of a toolbar
#define ETK_TOOLBAR |
( |
obj |
|
) |
(ETK_OBJECT_CAST((obj), ETK_TOOLBAR_TYPE, Etk_Toolbar)) |
#define ETK_IS_TOOLBAR |
( |
obj |
|
) |
(ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOLBAR_TYPE)) |
Enumeration Type Documentation
The orientation of a toolbar.
- Enumerator:
-
ETK_TOOLBAR_HORIZ |
The toolbar is horizontal |
ETK_TOOLBAR_VERT |
The toolbar is vertical |
The style of the toolbar's buttons (icon, text, both vertically, both horizontally).
- Enumerator:
-
ETK_TOOLBAR_DEFAULT |
Use Etk's default policy |
ETK_TOOLBAR_ICON |
Only the icon is visible |
ETK_TOOLBAR_TEXT |
Only the label is visible |
ETK_TOOLBAR_BOTH_HORIZ |
Both the icon and the label are visible, the icon is at the left of the label |
ETK_TOOLBAR_BOTH_VERT |
Both the icon and the label are visible, the icon is above the label |
Function Documentation
Etk_Type * etk_toolbar_type_get |
( |
void |
|
) |
|
Creates a new toolbar (horizontal by default).
- Returns:
- Returns the new toolbar
Appends an item to the start of the toolbar.
- Parameters:
-
| toolbar | a toolbar |
| widget | the item to append |
Prepends an item to the end of the toolbar.
- Parameters:
-
| toolbar | a toolbar |
| widget | the item to append |
Adds an item to the toolbar at a specified position.
- Parameters:
-
| toolbar | a toolbar |
| widget | the item to add |
| pos | the position to add the item at |
Sets the toolbar's orientation (horizontal or vertical).
- Parameters:
-
| toolbar | a toolbar |
| orientation | the orientation to set |
Gets the toolbar's orientation (horizontal or vertical).
- Parameters:
-
- Returns:
- Returns the orientation of the toolbar
Sets the style of toolbar's tool-buttons (icon, text, both vertically, both horizontally).
- Parameters:
-
| toolbar | a toolbar |
| style | the style to set |
Gets the style of toolbar's tool-buttons (icon, text, both vertically, both horizontally).
- Parameters:
-
- Returns:
- Returns the style of toolbar's tool-buttons
Sets the stock-size of the toolbar's tool-buttons.
- Parameters:
-
| toolbar | a toolbar |
| size | the stock-size to use |
Gets the stock-size of the toolbar's tool-buttons.
- Parameters:
-
- Returns:
- Returns the stock-size of the toolbar's tool-buttons
|
|
|
|
|
|