![]() |
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 () |
![]() | |
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) |
![]() | |
CKControl (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
virtual | ~CKControl () |
virtual void | RemovedFromWindow () |
virtual void | MarkAsDirty () |
![]() | |
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 () |
![]() | |
CKTextableControl () | |
virtual | ~CKTextableControl () |
virtual void | SetText (const char *text) |
virtual const char * | GetText () |
Additional Inherited Members | |
![]() | |
CKProperty< CKWindow * > | owner = nullptr |
CKProperty< CKRect > | rect |
CKProperty< bool > | enabled = true |
CKProperty< bool > | visible |
![]() | |
virtual void | __ReflectToOS () |
![]() | |
CKControlPtr | __ptr |
CKControlType | __type |
![]() | |
std::map< CKEventType, CKEventHandlerFunc > | __handlers |
CKPropertyObserverFunc | propertyObserverCB = nullptr |
![]() | |
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 | ) |