MCPcopy Create free account
hub / github.com/DarthTon/Xenos / Button

Class Button

src/Button.hpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8class Button : public Control
9{
10public:
11 Button( HWND hwnd = NULL )
12 : Control( hwnd ) { }
13
14 virtual bool checked() const { return Button_GetCheck( _hwnd ) != BST_UNCHECKED; }
15 virtual void checked( bool state ) { Button_SetCheck( _hwnd, state ); }
16
17 inline operator bool() { return checked(); }
18};
19
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected