|
CFx SDK Documentation 2026 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 { eExpanding = -1 , eXS = 0 , eS , eM , eL , eXL } |
| enum | UIScrollBarPolicy { eScrollBarAsNeeded = 0 , eScrollBarAlwaysOff , eScrollBarAlwaysOn } |
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 23 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. |
| int CFxUIStackedWidget::count | ( | ) | const |
Returns the number of widgets contained by this stacked widget
By default, this function returns a value of 0.
| 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.
| CFxUIBaseView * CFxUIStackedWidget::currentWidget | ( | ) | const |
Returns the current widget, or nullptr if there are no child widgets.
| 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::removeWidget | ( | CFxUIBaseView * | widget | ) |
Removes widget from the CFxUIStackedWidget. i.e., widget is not deleted but simply removed from the stacked layout, causing it to be hidden.
| 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. |
| CFxUIBaseView * CFxUIStackedWidget::widget | ( | int | index | ) | const |
Returns the widget at the given index, or nullptr if there is no such widget.