iPlug2 - C++ Audio Plug-in Framework
Public Member Functions | Protected Attributes | List of all members
IBitmapBase Class Reference

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

#include <IControl.h>

Inheritance diagram for IBitmapBase:
[legend]

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
 
IControlmControl = nullptr
 

Detailed Description

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

Definition at line 586 of file IControl.h.

Constructor & Destructor Documentation

IBitmapBase::IBitmapBase ( const IBitmap bitmap)
inline

IBitmapBase Constructor.

Parameters
TheIBitmap to use in this IBControl

Definition at line 591 of file IControl.h.

Referenced by IBKnobRotaterControl::Draw(), and IBSwitchControl::OnMouseDown().

Member Function Documentation

void IBitmapBase::AttachIControl ( IControl pControl)
inline

Call in the constructor of your IBControl to link the IBitmapBase and IControl.

Parameters
pControlPtr to the control

Definition at line 600 of file IControl.h.

Referenced by IBSwitchControl::IBSwitchControl(), and IBSwitchControl::OnMouseDown().

void IBitmapBase::DrawBitmap ( IGraphics g)
inline

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

Parameters
gThe IGraphics context

Definition at line 604 of file IControl.h.

References Clip(), and IGraphics::DrawBitmap().


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