COLOR_BLACK,
pParent->AddChildControl(
new ITextControl(
IRECT(),
"MyPlugin", {DEFAULT_TEXT_SIZE * 5, COLOR_WHITE}));
WDL_String versionStr {"Version "};
versionStr.Append(PLUG_VERSION_STR);
"https://www.acmeinc.com",
"https://www.acmeinc.com", {DEFAULT_TEXT_SIZE, COLOR_WHITE}));
},
const auto content = mainArea.
GetPadded(-10);
const auto logo = content.
GetFromTop(300).GetCentredInside(300, 100);
pParent->GetChild(0)->SetTargetAndDrawRECTs(logo);
pParent->GetChild(1)->SetTargetAndDrawRECTs(links.SubRectVertical(4, 0));
}, 200), kCtrlTagAboutBox)->Hide(true);
A "meta control" which you can attach child controls to display an about box, or preferences panel Wh...
IContainerBase allows a control to nest sub controls and it clips the drawing of those subcontrols In...
void SetTargetAndDrawRECTs(const IRECT &bounds)
Set BOTH the draw rect and the target area, within the graphics context for this control.
A basic control to display some text.
A control to show a clickable URL, that changes color after clicking.
A vector label control that can display text with a shadow.
Used to manage a rectangular area, independent of draw class/platform.
IRECT FracRectVertical(float frac, bool fromTop=false) const
Returns a new IRECT with a height that is multiplied by frac.
IRECT GetFromTop(float amount) const
Get a subrect of this IRECT bounded in Y by the top edge and 'amount'.
IRECT GetPadded(float padding) const
Get a copy of this IRECT with each value padded by padding N.B.
In a button control somewhere on the UI, call pGraphics->GetControlWithTag(kCtrlTagAboutBox)->As<IAboutBoxControl>()->Show(); in order to get the about box to appear.