Tizen Native API
Dali::Toolkit::CheckBoxButton Class Reference

CheckBoxButton provides a check box button which user can check or uncheck. More...

Inheritance diagram for Dali::Toolkit::CheckBoxButton:
Dali::Toolkit::Button Dali::Toolkit::Control Dali::CustomActor Dali::Actor Dali::Handle Dali::BaseHandle

Public Member Functions

 CheckBoxButton ()
 Create an uninitialized CheckBoxButton; this can be initialized with CheckBoxButton::New(). Calling member functions with an uninitialized Dali::Object is not allowed.
 CheckBoxButton (const CheckBoxButton &checkBox)
 Copy constructor.
CheckBoxButtonoperator= (const CheckBoxButton &checkBox)
 Assignment operator.
 ~CheckBoxButton ()
 Destructor.

Static Public Member Functions

static CheckBoxButton New ()
 Create an initialized CheckBoxButton.
static CheckBoxButton DownCast (BaseHandle handle)
 Downcast a handle to CheckBoxButton handle.

Detailed Description

CheckBoxButton provides a check box button which user can check or uncheck.

By default a CheckBoxButton emits a Button::ClickedSignal() signal when the button changes its state to selected or unselected.

The button's appearance could be modified by Button::SetUnselectedImage, Button::SetBackgroundImage, Button::SetSelectedImage, Button::SetSelectedBackgroundImage, Button::SetDisabledBackgroundImage, Button::SetDisabledImage, and Button::SetDisabledSelectedImage.

When the button is not disabled, if it's not selected it only shows the background image. The selected image is shown over the background image when the box is selected (background image is not replaced by selected image).

When the button is disabled, background image and selected image are replaced by disabled images.

Since :
2.4

Constructor & Destructor Documentation

Create an uninitialized CheckBoxButton; this can be initialized with CheckBoxButton::New(). Calling member functions with an uninitialized Dali::Object is not allowed.

Since :
2.4

Copy constructor.

Since :
2.4

Destructor.

This is non-virtual since derived Handle types must not contain data or virtual methods.

Since :
2.4

Member Function Documentation

Downcast a handle to CheckBoxButton handle.

If handle points to a CheckBoxButton the downcast produces valid handle. If not the returned handle is left uninitialized.

Since :
2.4
Parameters:
[in]handleHandle to an object
Returns:
A handle to a CheckBoxButton or an uninitialized handle

Reimplemented from Dali::Toolkit::Button.

Create an initialized CheckBoxButton.

Since :
2.4
Returns:
A handle to a newly allocated Dali resource

Reimplemented from Dali::Toolkit::Control.

CheckBoxButton& Dali::Toolkit::CheckBoxButton::operator= ( const CheckBoxButton checkBox)

Assignment operator.

Since :
2.4