Etk_Toggle_Button
Detailed Description
An
Etk_Toggle_Button is a button that can be activated and deactivated by clicking on it. It is the base class of check and radio buttons.
- Object Hierarchy:
-
- Signals:
- "toggled": Emitted when the state of the toggle button is changed
Callback:
Etk_Bool callback(Etk_Toggle_Button *button, void *data)
button:
the toggle button that has been toggleddata:
the user data set when the callback has been connected to the signal
- Properties:
- "active": Whether or not the toggle button is active
Type:
BooleanAccess:
Read/WriteDefault Value:
ETK_FALSE
Define Documentation
#define ETK_TOGGLE_BUTTON_TYPE (etk_toggle_button_type_get()) |
#define ETK_TOGGLE_BUTTON |
( |
obj |
|
) |
(ETK_OBJECT_CAST((obj), ETK_TOGGLE_BUTTON_TYPE, Etk_Toggle_Button)) |
#define ETK_IS_TOGGLE_BUTTON |
( |
obj |
|
) |
(ETK_OBJECT_CHECK_TYPE((obj), ETK_TOGGLE_BUTTON_TYPE)) |
Function Documentation
Etk_Widget * etk_toggle_button_new_with_label |
( |
const char * |
label |
) |
|
void etk_toggle_button_active_set |
( |
Etk_Toggle_Button * |
toggle_button, |
|
|
Etk_Bool |
active | |
|
) |
| | |
Gets the state of the toggle button.
- Parameters:
-
| toggle_button | a toggle button |
- Returns:
- Returns ETK_TRUE if the button is active, ETK_FALSE otherwise
References active.
Referenced by etk_combobox_entry_is_popped_up().