![]() |
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) |
Public Member Functions inherited from CKControlToolbox | |
| CKControlToolbox (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
| virtual | ~CKControlToolbox () |
| virtual void | Redraw () |
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 () |
Public Member Functions inherited from CKValueContainingControl | |
| 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 |
Public Attributes inherited from CKControl | |
| 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 | |
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 | |
Protected Attributes inherited from CKValueContainingControl | ||
| 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 |