![]() |
Clapkit
|
Defines a dropdown control. More...
#include <ckDropdown.h>
Public Member Functions | |
CKDropdown (const CKControlInitParams ¶ms) | |
virtual | ~CKDropdown () |
virtual void | AddedToWindow (CKWindow *window) |
virtual bool | HandleEvent (const CKEvent &evt) |
virtual void | RaisePropertyChange (const char *propertyName) |
![]() | |
CKControlToolbox (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
virtual | ~CKControlToolbox () |
virtual void | Redraw () |
![]() | |
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 () |
![]() | |
void | SetValue (bool value) |
void | SetValue (void *value) |
bool | GetBoolean () const |
void * | GetMisc () const |
Public Attributes | |
CKProperty< int > | labelWidth = -1 |
CKProperty< std::vector< const char * > > | items |
CKProperty< int > | selectedIndex = -1 |
![]() | |
CKProperty< CKWindow * > | owner = nullptr |
CKProperty< CKRect > | rect |
CKProperty< bool > | enabled = true |
CKProperty< bool > | visible |
Protected Member Functions | |
CKDropdown (const CKControlInitParams ¶ms, CKControlType forcedType) | |
Protected Attributes | ||
MenuID | __menuId | |
MenuHandle | __menu = nullptr | |
bool | __rebuildMenu = false | |
int | __lastRaisedSelectedIndex = -1 | |
![]() | ||
CKControlPtr | __ptr | |
CKControlType | __type | |
![]() | ||
std::map< CKEventType, CKEventHandlerFunc > | __handlers | |
CKPropertyObserverFunc | propertyObserverCB = nullptr | |
![]() | ||
char * | __text | |
![]() | ||
CKValueType | _type = CKValueType::None | |
union { | ||
bool bValue | ||
void * mValue | ||
} | _value | |
Defines a dropdown control.
CKDropdown::CKDropdown | ( | const CKControlInitParams & | params | ) |
|
virtual |
|
protected |
|
virtual |
Called by CKApp when the control has been added to a window.
Reimplemented from CKControlToolbox.
|
virtual |
Reimplemented from CKControlToolbox.
|
virtual |
Reimplemented from CKControlToolbox.
|
protected |
|
protected |
|
protected |
|
protected |
CKProperty<std::vector<const char*> > CKDropdown::items |
CKProperty<int> CKDropdown::labelWidth = -1 |
CKProperty<int> CKDropdown::selectedIndex = -1 |