|
CFx SDK Documentation 2024 SP0
|
#include <FxUICheckBox.h>
Public Types | |
| enum | CheckState { Unchecked , PartiallyChecked , Checked } |
Public Types inherited from CFxUIBaseView | |
| enum | TextAlignment { AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 , AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 , AlignCenter = AlignVCenter | AlignHCenter } |
| enum | FocusPolicyType { eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 , eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10 } |
| enum | UIWidthSizePolicy { eExpanding = -1 , eXS = 0 , eS , eM , eL , eXL } |
Additional Inherited Members | |
Static Public Member Functions inherited from CFxUIBaseView | |
| static void | setTabOrder (CFxUIObject *first, CFxUIObject *second) |
Protected Member Functions inherited from CFxUIObject | |
| CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
| CFxUIObjectImpl * | m_pImpl |
| CFxUIObjectData * | m_pData |
Class CFxUI type check box.
Definition at line 27 of file FxUICheckBox.h.
This enum type defines the alignment of text to be done.
Definition at line 34 of file FxUICheckBox.h.
| CFxUICheckBox::CFxUICheckBox | ( | ) |
Constructor
|
virtual |
Destructor
| CFxUICheckBox::CheckState CFxUICheckBox::checkState | ( | ) | const |
Returns the checkbox's check state
| CFxUISignal< void(void)> & CFxUICheckBox::clicked | ( | ) |
Signal is emitted when the button pressed down then released while the mouse cursor is inside the box.
| bool CFxUICheckBox::isChecked | ( | ) | const |
Returns if check box is checked.
| bool CFxUICheckBox::isTristate | ( | ) | const |
Returns if whether the checkbox is a tri-state checkbox.
| void CFxUICheckBox::setChecked | ( | bool | bChecked | ) |
Set the check box checked.
Only checkable controls can be checked.
| bChecked | The check box is set to checked only if the value of the parameter is true. |
| void CFxUICheckBox::setCheckState | ( | CFxUICheckBox::CheckState | state | ) |
Sets the checkbox's check state to state.
| state | Input. |
| void CFxUICheckBox::setResourceIcon | ( | const CFxUIString & | icon | ) |
Sets the icon.
| str | The resource path is passed in parameter. |
| void CFxUICheckBox::setText | ( | const CFxUIString & | str | ) |
Sets the text.
| str | Input |
| void CFxUICheckBox::setTextSize | ( | float | size | ) |
Sets the text size of checkbox label.
| size | Input |
Sets the tristate for checkbox.
| tristate | Input . By default tristate is set to true. |
| CFxUISignal< void(int)> & CFxUICheckBox::stateChanged | ( | ) |
Signal is emitted whenever the check box's state changes, i.e. whenever the user checks or unchecks it.
| CFxUIString CFxUICheckBox::text | ( | ) | const |
Returns the text.
| CFxUISignal< void(bool)> & CFxUICheckBox::toggled | ( | ) |
Signal is emitted whenever the check box's state changes, i.e. whenever the user checks or unchecks it.