![]() |
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 () |
Public Member Functions inherited from CKLabel | |
| 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) |
Public Member Functions inherited from CKControl | |
| CKControl (const CKControlInitParams ¶ms, CKControlType type=CKControlType::Unknown) | |
| virtual | ~CKControl () |
| 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 () |
Public Member Functions inherited from CKFocusableControl | |
| CKFocusableControl () | |
| virtual | ~CKFocusableControl () |
| virtual void | PerformUndo () |
Protected Member Functions | |
| virtual void | TECreated () |
Protected Member Functions inherited from CKLabel | |
| virtual void | ResizeTE () |
Additional Inherited Members | |
Public Attributes inherited from CKLabel | |
| 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 |
Public Attributes inherited from CKControl | |
| CKProperty< CKWindow * > | owner = nullptr |
| CKProperty< CKRect > | rect |
| CKProperty< bool > | enabled = true |
| CKProperty< bool > | visible |
Public Attributes inherited from CKFocusableControl | |
| CKProperty< bool > | focused |
| const bool | undoable = false |
| const bool | copyable = true |
| const bool | pastable = true |
| const bool | cutable = true |
| const bool | clearable = true |
Protected Attributes inherited from CKLabel | |
| short | __fontNumber |
| TEHandle | __teHandle = nullptr |
| char * | __tempTextStorage = nullptr |
| bool | __needsPreparing = true |
Protected Attributes inherited from CKObject | |
| std::map< CKEventType, CKEventHandlerFunc > | __handlers |
| CKPropertyObserverFunc | propertyObserverCB = nullptr |
Protected Attributes inherited from CKTextableControl | |
| 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.