Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_toolbar.h File Reference


Detailed Description


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)
 Appends an item to the start of the toolbar.
void etk_toolbar_prepend (Etk_Toolbar *toolbar, Etk_Widget *widget)
 Prepends an item to the end of the toolbar.
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.