![]() |
Clapkit
|
Defines a one-line editable text field. More...
#include <ckTextField.h>
Public Member Functions | |
CKTextField (const CKControlInitParams ¶ms) | |
virtual | ~CKTextField () |
virtual void | Redraw () |
virtual void | Blurred () |
virtual void | Focused () |
virtual void | PrepareForDraw () |
virtual bool | HandleEvent (const CKEvent &evt) |
virtual void | PerformCut () |
virtual void | PerformCopy () |
virtual void | PerformPaste () |
virtual void | PerformClear () |
virtual bool | CanPerformPaste () |
![]() | |
CKLabel (const CKControlInitParams ¶ms) | |
virtual | ~CKLabel () |
virtual void | AddedToWindow (CKWindow *window) |
virtual void | RemovedFromWindow () |
virtual void | SetText (const char *text) |
virtual const char * | GetText () |
void | AutoHeight (int maxHeight=0) |
Increase the height until it fits. | |
void | SetFont (short fontId) |
short | GetFont () |
void | DoTEIdle () |
virtual void | RaisePropertyChange (const char *propertyName) |
![]() | |
CKControl (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
virtual | ~CKControl () |
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 () |
![]() | |
CKFocusableControl () | |
virtual | ~CKFocusableControl () |
virtual void | PerformUndo () |
Protected Member Functions | |
virtual void | TECreated () |
![]() | |
virtual void | ResizeTE () |
Additional Inherited Members | |
![]() | |
CKProperty< bool > | bold = false |
CKProperty< bool > | italic = false |
CKProperty< bool > | underline = false |
CKProperty< bool > | multiline = false |
CKProperty< CKColor > | color |
CKProperty< int > | fontSize |
CKProperty< CKTextJustification > | justification |
![]() | |
CKProperty< CKWindow * > | owner = nullptr |
CKProperty< CKRect > | rect |
CKProperty< bool > | enabled = true |
CKProperty< bool > | visible |
![]() | |
CKProperty< bool > | focused |
const bool | undoable = false |
const bool | copyable = true |
const bool | pastable = true |
const bool | cutable = true |
const bool | clearable = true |
![]() | |
short | __fontNumber |
TEHandle | __teHandle = nullptr |
char * | __tempTextStorage = nullptr |
bool | __needsPreparing = true |
![]() | |
std::map< CKEventType, CKEventHandlerFunc > | __handlers |
CKPropertyObserverFunc | propertyObserverCB = nullptr |
![]() | |
char * | __text |
Defines a one-line editable text field.
CKTextField::CKTextField | ( | const CKControlInitParams & | params | ) |
|
virtual |
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKObject.
Reimplemented in CKTextArea.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKFocusableControl.
|
virtual |
Reimplemented from CKLabel.
Reimplemented in CKTextArea.
|
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 CKLabel.
Reimplemented in CKTextArea.
|
protectedvirtual |
Reimplemented from CKLabel.
Reimplemented in CKTextArea.