Nuke binary plugins 15.1.4
 
Loading...
Searching...
No Matches
DD::Image::StringKnobI Class Referenceabstract

interface class for an array of characters or a string. More...

#include <StringKnobI.h>

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 KnobbaseKnob ()=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
 

Detailed Description

interface class for an array of characters or a string.

Member Function Documentation

◆ default_value()

virtual void DD::Image::StringKnobI::default_value ( const char *  s,
bool  store = false 
)
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.

◆ get_text()

virtual const char * DD::Image::StringKnobI::get_text ( const OutputContext context,
bool  evaluate = true 
) const
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.
www.foundry.com