21#include "IPlugStructs.h"
24BEGIN_IGRAPHICS_NAMESPACE
27template <
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;
67END_IGRAPHICS_NAMESPACE
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.
int Get(T *pDst, int startPos) const
Get arbitary typed data from the stream.
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.
A control to display some text in the UI, driven by values in the RT audio thread.
void OnMsgFromDelegate(int msgTag, int dataSize, const void *pData) override
Implement to receive messages sent to the control, see IEditorDelegate:SendControlMsgFromDelegate()
ISender is a utility class which can be used to defer data from the realtime audio processing and sen...
A basic control to display some text.
virtual void SetStr(const char *str)
Set the text to display.
Used to manage color data, independent of draw class/platform.
Used to manage a rectangular area, independent of draw class/platform.
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,...