|
CFx SDK Documentation
2020SP3
|
#include <FxUIPushButton.h>
Additional Inherited Members | |
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 { eXS = 0, eS, eM, eL, eXL } |
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 CFxUIPushButton provides a command button. CFxUIPushButton: Tooltips without icons on desktop and web, no tooltips on mobile
Definition at line 29 of file FxUIPushButton.h.
| CFxUIPushButton::CFxUIPushButton | ( | ) |
Constructor
| CFxUIPushButton::~CFxUIPushButton | ( | ) |
Destructor
| CFxUISignal<void(bool)>& CFxUIPushButton::clicked | ( | ) |
Signal is emitted when the button pressed down then released while the mouse cursor is inside the box.
| CFxUIIcon CFxUIPushButton::icon | ( | ) | const |
Gets the icon.
| CFxUISize CFxUIPushButton::iconSize | ( | ) | const |
Gets the size of the icon.
| bool CFxUIPushButton::isChecked | ( | ) |
| CFxUISignal<void(int)>& CFxUIPushButton::keyWentDown | ( | ) |
Signal is emitted when any key is pressed (including special keys like ESC, Shift etc.. )
| void CFxUIPushButton::setBoldText | ( | bool | bBold | ) |
Sets font of text in push button as bold.
| bBold | If parameter is true font is set to bold, otherwise not. |
| void CFxUIPushButton::setCheckable | ( | const bool | bCheckable | ) |
Set the control checkable.
By default, the control is not checkable.
| bCheckable | Input |
| void CFxUIPushButton::setElideTextEnabled | ( | const bool | bEnableElideText | ) |
Enable or disable text elision.
By default, this property will be disabled.
| bEnableElideText | Input |
Sets the size of the icon.
| size | The icon is resized to the value passed in parameter. |
Sets the popup menu.
| pMenu | Pointer to the popup menu. |
| void CFxUIPushButton::setMenuArrowVisible | ( | bool | bVisible | ) |
Sets whether the menu arrow is visible.
| bShow | the menu arrow is visible if this parameter is true, otherwise it's hidden. |
| void CFxUIPushButton::setResourceIcon | ( | const CFxUIString & | resourceIcon | ) |
Sets the icon.
| str | The resource path is passed in parameter. |
| void CFxUIPushButton::setText | ( | const CFxUIString & | text | ) |
Sets the text.
| text | Input |
| void CFxUIPushButton::setTextAlignment | ( | TextAlignment | iAlignment | ) |
Sets alignment of text on push button.
| iAlignment | The value is to be from enums defined in TextAlignment. |
| CFxUIString CFxUIPushButton::text | ( | ) | const |
Returns the text.