30 vector<TabBarItem> _tabs;
31 long _firstVisibleTab;
35 BOOL _paintTabsBackward;
37 Bounds _scrollRightBtnRect;
HWND WinHandle
Definition Common.h:16
A UI component that manages multiple "cards", displaying only one at a time.
Definition CardPanel.h:27
Component()
Constructs a new Component instance.
Definition Graphics.h:161
Base class for panel-like components that arrange child components in a grid layout.
Definition PanelBase.h:29
wstring _title
Definition TabPane.h:15
Bounds _rect
Definition TabPane.h:17
PanelBase * _tabComponent
Definition TabPane.h:16
TabBarItem(const wstring &title, PanelBase *tabComponent)
Definition TabPane.h:9
void addTab(const wstring &tabTitle, PanelBase *tabComponent)
Adds a new tab with the specified title and component.
void windowCreated()
Called when the window is created.
TabPane()
Constructs a new TabPane component.
virtual ~TabPane()
Destructor for the TabPane component.
void clear()
Clears all tabs.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse press events.
void onPaint(Graphics *g)
Paints the TabPane including tabs and active content.
void onWindowResized()
Handles window resize events.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves window creation options.