interface class for an array of characters or a string. More...
Public Types | |
typedef void( | CursorPositionChangedCallback) (Knob *knob, int position, int selectionStart, int selectionEnd) |
callback for when the cursor position changes | |
Public Member Functions | |
virtual void | setCursorPosition (int newPosition, bool moveAnchor)=0 |
set the cursor to the absolute position and optionally move the anchor also | |
virtual void | registerCursorChangedCallback (CursorPositionChangedCallback *cb)=0 |
register a callback object to be called when the cursor position changes | |
virtual Knob * | baseKnob ()=0 |
Return the Knob this interface is on. Implementations should just "return this;". | |
virtual void | default_value (const char *s, bool store=false)=0 |
virtual const char * | get_text (const OutputContext *context, bool evaluate=true) const =0 |
Static Public Attributes | |
static const int | kNoSelection |
interface class for an array of characters or a string.
|
pure virtual |
Sets the default value for the StringKnob. If store is true then the string content is copied locally into the StringKnob, otherwise the calling object retains ownership of the string buffer.
|
pure virtual |
evaluate only valid for EvalStringKnob subclasses. Returns a non-evaluated (raw) string if evaluate is false.
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |