Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Tool_Button


Detailed Description

The Etk_Tool_Button widget is similar to an Etk_Button but it has a specific toolbar friendly theme.


Data Structures

struct  _Etk_Tool_Button
 [Widget] The structure of a tool button More...

Defines

#define ETK_TOOL_BUTTON_TYPE   (etk_tool_button_type_get())
#define ETK_TOOL_BUTTON(obj)   (ETK_OBJECT_CAST((obj), ETK_TOOL_BUTTON_TYPE, Etk_Tool_Button))
#define ETK_IS_TOOL_BUTTON(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOL_BUTTON_TYPE))

Functions

Etk_Type * etk_tool_button_type_get ()
 Gets the type of an Etk_Tool_Button.
Etk_Widget * etk_tool_button_new ()
 Creates a new tool button.
Etk_Widget * etk_tool_button_new_with_label (const char *label)
 Creates a new tool button with a label.
Etk_Widget * etk_tool_button_new_from_stock (Etk_Stock_Id stock_id)
 Creates a new tool toggle button with a label and an icon defined by a stock id.
Etk_Type * etk_tool_toggle_button_type_get ()
 Gets the type of an Etk_Tool_Toggle_Button.
Etk_Widget * etk_tool_toggle_button_new ()
 Creates a new tool toggle button.
Etk_Widget * etk_tool_toggle_button_new_with_label (const char *label)
 Creates a new tool toggle button with a label.
Etk_Widget * etk_tool_toggle_button_new_from_stock (Etk_Stock_Id stock_id)
 Creates a new tool toggle button with a label and an icon defined by a stock id.


Define Documentation

#define ETK_TOOL_BUTTON_TYPE   (etk_tool_button_type_get())

Gets the type of a tool button

#define ETK_TOOL_BUTTON ( obj   )     (ETK_OBJECT_CAST((obj), ETK_TOOL_BUTTON_TYPE, Etk_Tool_Button))

Casts the object to an Etk_Tool_Button

#define ETK_IS_TOOL_BUTTON ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOL_BUTTON_TYPE))

Checks if the object is an Etk_Tool_Button


Function Documentation

Etk_Type * etk_tool_button_type_get (  ) 

Gets the type of an Etk_Tool_Button.

Returns:
Returns the type of an Etk_Tool_Button

Etk_Widget * etk_tool_button_new (  ) 

Creates a new tool button.

Returns:
Returns the new tool button widget

Etk_Widget * etk_tool_button_new_with_label ( const char *  label  ) 

Creates a new tool button with a label.

Returns:
Returns the new tool button widget

Etk_Widget * etk_tool_button_new_from_stock ( Etk_Stock_Id  stock_id  ) 

Creates a new tool toggle button with a label and an icon defined by a stock id.

Parameters:
stock_id the stock id corresponding to a label and an icon
Returns:
Returns the new tool toggle button widget
See also:
Etk_Stock

Etk_Type* etk_tool_toggle_button_type_get (  ) 

Gets the type of an Etk_Tool_Toggle_Button.

Returns:
Returns the type of an Etk_Tool_Toggle_Button

Etk_Widget* etk_tool_toggle_button_new (  ) 

Creates a new tool toggle button.

Returns:
Returns the new tool toggle button widget

Etk_Widget* etk_tool_toggle_button_new_with_label ( const char *  label  ) 

Creates a new tool toggle button with a label.

Returns:
Returns the new tool toggle button widget

Etk_Widget* etk_tool_toggle_button_new_from_stock ( Etk_Stock_Id  stock_id  ) 

Creates a new tool toggle button with a label and an icon defined by a stock id.

Parameters:
stock_id the stock id corresponding to a label and an icon
Returns:
Returns the new tool toggle button widget
See also:
Etk_Stock