iPlug 2: ILayer Class Reference

An abstraction that is used to store a temporary raster image/framebuffer. More...

#include <IGraphicsStructs.h>

Public Member Functions

 ILayer (APIBitmap *pBitmap, const IRECT &layerRect, IControl *pControl, const IRECT &controlRect)
 Create a layer/offscreen context (used internally) More...
 
 ILayer (const ILayer &)=delete
 
ILayer operator= (const ILayer &)=delete
 
void Invalidate ()
 Mark the layer as needing its contents redrawn
More...
 
const APIBitmapGetAPIBitmap () const
 
IBitmap GetBitmap () const
 
const IRECTBounds () const
 

An abstraction that is used to store a temporary raster image/framebuffer.

The layer is drawn with a specific offset to the graphics context. ILayers take ownership of the underlying bitmaps In GPU-based backends (NanoVG), this is a texture.

Definition at line 2328 of file IGraphicsStructs.h.

Create a layer/offscreen context (used internally)

Parameters
pBitmapThe APIBitmap to use for the layer
layerRectThe bounds of the layer withing the graphics context
pControlThe control that the layer belongs to
controlRectThe bounds of the control

Definition at line 2338 of file IGraphicsStructs.h.

◆ Bounds()

const IRECT & ILayer::Bounds ( ) const
inline

◆ GetAPIBitmap()

const APIBitmap * ILayer::GetAPIBitmap ( ) const
inline

◆ GetBitmap()

IBitmap ILayer::GetBitmap ( ) const
inline

◆ Invalidate()

void ILayer::Invalidate ( )
inline

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