21BEGIN_IGRAPHICS_NAMESPACE
67 AttachFunc attachFunc =
nullptr, ResizeFunc resizeFunc =
nullptr,
68 int animationTime = 200)
70 , mAnimationTime(animationTime)
77 if (key.VK == kVK_ESCAPE)
103 auto blend =
IBlend(EBlend::Default, progress);
107 ForAllChildrenFunc([blend](
int,
IControl* pControl) {
113 pCaller->OnEndAnimation();
124 int mAnimationTime = 200;
127END_IGRAPHICS_NAMESPACE
A collection of IControls for common UI widgets, such as knobs, sliders, switches.
A "meta control" which you can attach child controls to display an about box, or preferences panel Wh...
IAboutBoxControl(const IRECT &bounds, const IPattern &color, AttachFunc attachFunc=nullptr, ResizeFunc resizeFunc=nullptr, int animationTime=200)
Constructor.
void OnMouseDown(float x, float y, const IMouseMod &mod) override
Implement this method to respond to a mouse down event on this control.
bool OnKeyDown(float x, float y, const IKeyPress &key) override
Implement this method to respond to a key down event on this control.
void Hide(bool hide) override
Shows or hides the IControl.
The lowest level base class of an IGraphics control.
virtual void Hide(bool hide)
Shows or hides the IControl.
double GetAnimationProgress() const
Get the progress in a control's animation, in the range 0-1.
void SetBlend(const IBlend &blend)
Set the Blend for this control.
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.
void SetAnimation(IAnimationFunction func)
Set the animation function.
void SetAllControlsDirty()
Calls SetDirty() on every control.
A basic control to fill a rectangle with a color or gradient.
Used to manage composite/blend operations, independent of draw class/platform.
Used for key press info, such as ASCII representation, virtual key (mapped to win32 codes) and modifi...
Used to manage mouse modifiers i.e.
Used to store pattern information for gradients.
Used to manage a rectangular area, independent of draw class/platform.