CFx SDK Documentation
2022 SP0
|
#include <FxUIStackedWidget.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 CFxUIStackedWidget provides a stack of widgets where only one widget is visible at a time.
Definition at line 25 of file FxUIStackedWidget.h.
CFxUIStackedWidget::CFxUIStackedWidget | ( | ) |
Constructor
|
virtual |
Destructor
void CFxUIStackedWidget::addPage | ( | CFxUIBaseView * | view | ) |
Adds the given widget to the stacked widget and label.
view | Pointer to the widget to be added. |
name | Input. |
CFxUISignal<void(int)>& CFxUIStackedWidget::currentChanged | ( | ) |
Signal is emitted when the user selects a page.
int CFxUIStackedWidget::currentIndex | ( | ) | const |
Returns index position of the current tab page.
The current index is -1 if there is no current widget.
int CFxUIStackedWidget::indexOf | ( | CFxUIBaseView * | view | ) | const |
Returns the index of provided widget if its the child of stacked widget
view | Pointer to the child widget of which index is returned. |
void CFxUIStackedWidget::setCurrentIndex | ( | int | index | ) |
Sets current index position of the tab page.
[in] | index | Input. |
void CFxUIStackedWidget::setCurrentWidget | ( | CFxUIBaseView * | widget | ) |
Sets widget the current widget. The widget used must be a page in this tab widget.
widget | Pointer to the widget which need to be set as current. |