Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Tool_Toggle_Button


Detailed Description

The Etk_Tool_Toggle_Button widget is similar to an Etk_Toggle_Button but it has a specific toolbar friendly theme.


Data Structures

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

Defines

#define ETK_TOOL_TOGGLE_BUTTON_TYPE   (etk_tool_toggle_button_type_get())
#define ETK_TOOL_TOGGLE_BUTTON(obj)   (ETK_OBJECT_CAST((obj), ETK_TOOL_TOGGLE_BUTTON_TYPE, Etk_Tool_Toggle_Button))
#define ETK_IS_TOOL_TOGGLE_BUTTON(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOL_TOGGLE_BUTTON_TYPE))

Functions

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_TOGGLE_BUTTON_TYPE   (etk_tool_toggle_button_type_get())

Gets the type of a tool toggle button

Referenced by etk_tool_toggle_button_new(), and etk_tool_toggle_button_new_with_label().

#define ETK_TOOL_TOGGLE_BUTTON ( obj   )     (ETK_OBJECT_CAST((obj), ETK_TOOL_TOGGLE_BUTTON_TYPE, Etk_Tool_Toggle_Button))

Casts the object to an Etk_Tool_Toggle_Button

#define ETK_IS_TOOL_TOGGLE_BUTTON ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOOL_TOGGLE_BUTTON_TYPE))

Checks if the object is an Etk_Tool_Toggle_Button


Function Documentation

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

References ETK_CONSTRUCTOR, ETK_TOGGLE_BUTTON_TYPE, and etk_type_new().

Etk_Widget* etk_tool_toggle_button_new (  ) 

Creates a new tool toggle button.

Returns:
Returns the new tool toggle button widget

References ETK_BUTTON_BOTH_VERT, ETK_TOOL_TOGGLE_BUTTON_TYPE, and etk_widget_new().

Referenced by etk_tool_toggle_button_new_from_stock().

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

References ETK_BUTTON_BOTH_VERT, ETK_TOOL_TOGGLE_BUTTON_TYPE, and etk_widget_new().

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

References ETK_BUTTON, etk_button_set_from_stock(), and etk_tool_toggle_button_new().