iPlug2 - C++ Audio Plug-in Framework
|
A base interface to be combined with IControl for bitmap-based controls "IBControls", managing an IBitmap. More...
#include <IControl.h>
Public Member Functions | |
IBitmapBase (const IBitmap &bitmap) | |
IBitmapBase Constructor. More... | |
void | AttachIControl (IControl *pControl) |
Call in the constructor of your IBControl to link the IBitmapBase and IControl. More... | |
void | DrawBitmap (IGraphics &g) |
Draw a frame of a multi-frame bitmap based on the IControl value. More... | |
Protected Attributes | |
IBitmap | mBitmap |
IControl * | mControl = nullptr |
A base interface to be combined with IControl for bitmap-based controls "IBControls", managing an IBitmap.
Definition at line 723 of file IControl.h.
|
inline |
IBitmapBase Constructor.
The | IBitmap to use in this IBControl |
Definition at line 728 of file IControl.h.
|
inlinevirtual |
Definition at line 733 of file IControl.h.
|
inline |
Call in the constructor of your IBControl to link the IBitmapBase and IControl.
pControl | Ptr to the control |
Definition at line 737 of file IControl.h.
Referenced by IBitmapControl::IBitmapControl(), and IBSwitchControl::IBSwitchControl().
|
inline |
Draw a frame of a multi-frame bitmap based on the IControl value.
g | The IGraphics context |
Definition at line 741 of file IControl.h.
References Clip(), IGraphics::DrawBitmap(), IControl::GetBlend(), IRECT::GetCentredInside(), IControl::GetRECT(), IControl::GetValue(), and IBitmap::N().
Referenced by IBButtonControl::Draw(), IBSwitchControl::Draw(), IBKnobControl::Draw(), IBMeterControl::Draw(), and IBitmapControl::Draw().
|
protected |
Definition at line 755 of file IControl.h.
|
protected |
Definition at line 756 of file IControl.h.