CFx SDK Documentation
2020SP3
|
#include <FxUIAction.h>
Additional Inherited Members | |
Protected Member Functions inherited from CFxUIObject | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxUIAction is the class for defining the actions.
Definition at line 25 of file FxUIAction.h.
CFxUIAction::CFxUIAction | ( | ) |
Constructor
CFxUIAction::~CFxUIAction | ( | ) |
Destructor
CFxUIVariant CFxUIAction::data | ( | ) |
Get the data on action.
bool CFxUIAction::isChecked | ( | ) | const |
Returns if control is checked.
void CFxUIAction::setCheckable | ( | bool | bVal | ) |
Set the control checkable.
By default, the control is not checkable.
bVal | Input |
void CFxUIAction::setChecked | ( | const bool | bChecked | ) |
Set the control checked.
Only checkable controls can be checked.
bChecked | The control is set to checked only if the value of the parameter is true. |
void CFxUIAction::setData | ( | const CFxUIVariant & | data | ) |
Sets the data on action.
data. |
void CFxUIAction::setEnabled | ( | const bool | bEnabled | ) |
Sets whether the control is enabled.
bEnabled | The control is enabled if the value of the parameter is true, otherwise it will be disabled. |
void CFxUIAction::setResourceIcon | ( | const CFxUIString & | str | ) |
Sets the icon.
str | The resource path is passed in parameter. |
void CFxUIAction::setText | ( | const CFxUIString & | str | ) |
Sets the text.
str | Input |
void CFxUIAction::setVisible | ( | const bool | bVisible | ) |
Set the visibility of control.
bVisible | The control is visible on widget if parameter is true, otherwise it is hidden. |
CFxUIString CFxUIAction::text | ( | ) | const |
Returns the text.
CFxUISignal<void( const bool )>& CFxUIAction::triggered | ( | ) |
Signal is emitted when an action is activated