Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_toggle_button.h File Reference


Detailed Description


Data Structures

struct  Etk_Toggle_Button
 [Widget] A button that can be activated/deactivated More...

Defines

#define ETK_TOGGLE_BUTTON_TYPE   (etk_toggle_button_type_get())
 Gets the type of a toggle button.
#define ETK_TOGGLE_BUTTON(obj)   (ETK_OBJECT_CAST((obj), ETK_TOGGLE_BUTTON_TYPE, Etk_Toggle_Button))
 Casts the object to an Etk_Toggle_Button.
#define ETK_IS_TOGGLE_BUTTON(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_TOGGLE_BUTTON_TYPE))
 Checks if the object is an Etk_Toggle_Button.

Functions

Etk_Widget * etk_toggle_button_new (void)
 Creates a new toggle button.
Etk_Widget * etk_toggle_button_new_with_label (const char *label)
 Creates a new toggle button with a label.
void etk_toggle_button_toggle (Etk_Toggle_Button *toggle_button)
 Toggles the toggle button.
void etk_toggle_button_active_set (Etk_Toggle_Button *toggle_button, Etk_Bool active)
 Sets whether the toggle button is active or not.
Etk_Bool etk_toggle_button_active_get (Etk_Toggle_Button *toggle_button)
 Gets the state of the toggle button.