36 wstring _visibleCardName;
Card(const wstring &cardName, PanelBase *component)
Definition CardPanel.h:8
PanelBase * _component
Definition CardPanel.h:16
wstring _cardName
Definition CardPanel.h:14
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves options for window creation.
void clear()
Removes all cards from the panel.
void onWindowResized()
Called when the window is resized.
void addCard(const wstring &cardName, PanelBase *component)
Adds a new card to the panel.
void onPaint(Graphics *g)
Renders the currently visible card.
void windowCreated()
Called when the window has been successfully created.
void setVisibleCard(const wstring &cardName)
Sets which card is currently visible based on its name.
CardPanel()
Constructs a new CardPanel instance.
virtual ~CardPanel()
Destroys the CardPanel and its contained components.
void onWindowMoved()
Called when the window is moved.
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