![]() |
Clapkit
|
Defines a push button. More...
#include <ckButton.h>
Public Member Functions | |
| CKButton (const CKControlInitParams ¶ms) | |
| virtual | ~CKButton () |
| void | SetDefault (bool isDefault) |
| bool | GetDefault () |
| virtual void | Redraw () |
Public Member Functions inherited from CKControlToolbox | |
| CKControlToolbox (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
| virtual | ~CKControlToolbox () |
| virtual void | AddedToWindow (CKWindow *window) |
| virtual bool | HandleEvent (const CKEvent &evt) |
| virtual void | RaisePropertyChange (const char *propertyName) |
Public Member Functions inherited from CKControl | |
| CKControl (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
| virtual | ~CKControl () |
| virtual void | RemovedFromWindow () |
| virtual void | MarkAsDirty () |
Public Member Functions inherited from CKObject | |
| CKObject () | |
| virtual | ~CKObject () |
| virtual void | AddHandler (CKEventType type, CKEventHandlerFunc cb) |
| virtual void | RemoveHandler (CKEventType type) |
| virtual bool | HasHandler (CKEventType type) const |
| virtual void | SetPropertyObserver (CKPropertyObserverFunc cb) |
| virtual void | UnsetPropertyObserver () |
Public Member Functions inherited from CKTextableControl | |
| CKTextableControl () | |
| virtual | ~CKTextableControl () |
| virtual void | SetText (const char *text) |
| virtual const char * | GetText () |
Additional Inherited Members | |
Public Attributes inherited from CKControl | |
| CKProperty< CKWindow * > | owner = nullptr |
| CKProperty< CKRect > | rect |
| CKProperty< bool > | enabled = true |
| CKProperty< bool > | visible |
Protected Member Functions inherited from CKControlToolbox | |
| virtual void | __ReflectToOS () |
Protected Attributes inherited from CKControlToolbox | |
| CKControlPtr | __ptr |
| CKControlType | __type |
Protected Attributes inherited from CKObject | |
| std::map< CKEventType, CKEventHandlerFunc > | __handlers |
| CKPropertyObserverFunc | propertyObserverCB = nullptr |
Protected Attributes inherited from CKTextableControl | |
| char * | __text |
Defines a push button.
| CKButton::CKButton | ( | const CKControlInitParams & | params | ) |
|
virtual |
|
inline |
|
virtual |
Called by CKApp when the control needs to (re-)draw itself, usually due to an event like mouseDown or updateEvt.
YOU MOST LIKELY DO NOT NEED TO CALL THIS. USE MarkAsDirty!
Reimplemented from CKControlToolbox.
| void CKButton::SetDefault | ( | bool | isDefault | ) |