12 wstring _selectedOption;
53 void setOptions(
const wstring& option1,
const wstring& option2);
HWND WinHandle
Definition Common.h:16
Component()
Constructs a new Component instance.
Definition Graphics.h:161
Definition EventListeners.h:31
void onWindowResized()
Handler called when the window is resized.
Switch()
Constructs a new Switch component.
wstring getSelectedtem()
Gets the currently selected option.
virtual ~Switch()
Destructor for the Switch component.
void windowCreated()
Called when the window is created.
void setOptions(const wstring &option1, const wstring &option2)
Sets the two toggle options.
void onPaint(Graphics *g)
Paint handler for the switch control.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handler for mouse press events.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Gets options for creating the window.
int getPreferredHeight()
Returns the preferred height.
void setSelectedtem(const wstring &selectedOption)
Sets the currently selected option.
void addSelectionChangedListener(SelectionChangeListener *l)
Adds a listener to be notified when the selection changes.