Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Check_Button


Detailed Description

The Etk_Check_Button widget is a toggle button made up of a checkbox and a label.

check_button.png

Since Etk_Check_Button inherits from Etk_Toggle_Button, you can use the etk_toggle_button_*() functions to change the state of the check-button. For example, to know if the button is checked, you should call etk_toggle_button_active_get().
You can also be notified when the state of the check button is changed with the "toggled" signal of Etk_Toggle_Button.

Object Hierarchy:
  • Etk_Object
    • Etk_Widget
      • Etk_Container
        • Etk_Bin
          • Etk_Button
            • Etk_Toggle_Button
              • Etk_Check_Button


Data Structures

struct  Etk_Check_Button
 [Widget] A toggle button made up of a checkbox and a label More...

Defines

#define ETK_CHECK_BUTTON_TYPE   (etk_check_button_type_get())
#define ETK_CHECK_BUTTON(obj)   (ETK_OBJECT_CAST((obj), ETK_CHECK_BUTTON_TYPE, Etk_Check_Button))
#define ETK_IS_CHECK_BUTTON(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_CHECK_BUTTON_TYPE))

Functions

Etk_Widget * etk_check_button_new (void)
 Creates a new check button.
Etk_Widget * etk_check_button_new_with_label (const char *label)
 Creates a new check button with a label.


Define Documentation

#define ETK_CHECK_BUTTON_TYPE   (etk_check_button_type_get())

Gets the type of a check button

#define ETK_CHECK_BUTTON ( obj   )     (ETK_OBJECT_CAST((obj), ETK_CHECK_BUTTON_TYPE, Etk_Check_Button))

Casts the object to an Etk_Check_Button

#define ETK_IS_CHECK_BUTTON ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_CHECK_BUTTON_TYPE))

Checks if the object is an Etk_Check_Button


Function Documentation

Etk_Widget * etk_check_button_new ( void   ) 

Creates a new check button.

Returns:
Returns the new check button widget

Etk_Widget * etk_check_button_new_with_label ( const char *  label  ) 

Creates a new check button with a label.

Parameters:
label the label
Returns:
Returns the new check button widget