CheckBoxState Class Reference

#include <Pt/Forms/CheckBoxStyler.h>

Transient visual state of a check box. More...

Public Member Functions

 CheckBoxState ()
 Constructs an empty check box state.
bool isEnabled () const
 Returns true if the widget is currently enabled.
void setEnabled (bool value)
 Sets whether the widget is enabled.
bool isHovered () const
 Returns true if the pointer is currently hovering the widget.
void setHovered (bool value)
 Sets whether the pointer is hovering the widget.
bool isFocused () const
 Returns true if the widget currently has focus.
void setFocused (bool value)
 Sets whether the widget has focus.
bool isChecked () const
 Returns true if the check box is currently checked.
void setChecked (bool value)
 Sets whether the check box is checked.

Detailed Description

CheckBoxState is the snapshot a CheckBox passes to measure, layout, and paint. It is not the application model. Enabled, hovered, focused, and checked describe the look of one paint pass.