iPlug 2: IBitmapBase Class Reference

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...
 

A base interface to be combined with IControl for bitmap-based controls "IBControls", managing an IBitmap.

Definition at line 723 of file IControl.h.

IBitmapBase::IBitmapBase ( const IBitmap bitmap)
inline

◆ ~IBitmapBase()

virtual IBitmapBase::~IBitmapBase ( )
inlinevirtual

◆ AttachIControl()

void IBitmapBase::AttachIControl ( IControl pControl)
inline

◆ DrawBitmap()

void IBitmapBase::DrawBitmap ( IGraphics g)
inline

Draw a frame of a multi-frame bitmap based on the IControl value.

Parameters

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().

◆ mBitmap

◆ mControl

IControl* IBitmapBase::mControl = nullptr

protected

The documentation for this class was generated from the following file: