21 #include "IPlugStructs.h" 24 BEGIN_IGRAPHICS_NAMESPACE
27 template <
int MAXNC = 1,
typename T =
double>
31 IRTTextControl(
const IRECT& bounds,
const char* fmtStr =
"%f",
const char* separatorStr =
", ",
const char* initStr =
"",
const IText& text = DEFAULT_TEXT,
const IColor& BGColor = DEFAULT_BGCOLOR)
34 , mSeparatorStr(separatorStr)
46 pos = stream.
Get(&d, pos);
50 for(
int i=0; i<d.nChans-1; i++)
52 str.AppendFormatted(256, mFMTStr.Get(), d.vals[i]);
53 str.Append(mSeparatorStr.Get());
55 str.AppendFormatted(256, mFMTStr.Get(), d.vals[d.nChans-1]);
64 WDL_String mSeparatorStr;
67 END_IGRAPHICS_NAMESPACE
int Get(T *pDst, int startPos) const
Get arbitary typed data from the stream.
void OnMsgFromDelegate(int msgTag, int dataSize, const void *pData) override
Implement to receive messages sent to the control, see IEditorDelegate:SendControlMsgFromDelegate() ...
Used to manage a rectangular area, independent of draw class/platform.
A basic control to display some text.
Used to manage color data, independent of draw class/platform.
ISender is a utility class which can be used to defer data from the realtime audio processing and sen...
This file contains the base IControl implementation, along with some base classes for specific types ...
Manages a non-owned block of memory, for receiving arbitrary message byte streams.
ISenderData is used to represent a typed data packet, that may contain values for multiple channels...
IText is used to manage font and text/text entry style for a piece of text on the UI...
virtual void SetStr(const char *str)
Set the text to display.
A control to display some text in the UI, driven by values in the RT audio thread.
ISender is a utility class which can be used to defer data from the realtime audio processing and sen...
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.