iPlug 2: IShadow Struct Reference

Used to specify properties of a drop-shadow to a layer. More...

#include <IGraphicsStructs.h>

Public Member Functions

 IShadow (const IPattern &pattern, float blurSize, float xOffset, float yOffset, float opacity, bool drawForeground=true)
 Create an IShadow. More...
 

Public Attributes

IPattern mPattern = COLOR_BLACK
 
float mBlurSize = 0.f
 
float mXOffset = 0.f
 
float mYOffset = 0.f
 
float mOpacity = 1.f
 
bool mDrawForeground = true
 

Used to specify properties of a drop-shadow to a layer.

Use with IGraphics::ApplyLayerDropShadow()

Definition at line 2373 of file IGraphicsStructs.h.

IShadow::IShadow ( )
inline

◆ IShadow() [2/2]

IShadow::IShadow ( const IPattern pattern,
float  blurSize,
float  xOffset,
float  yOffset,
float  opacity,
bool  drawForeground = true 
)
inline

Create an IShadow.

Parameters
patternThe IPattern for the shadow
blurSizeThe size of the gaussian blur in points
xOffsetOffset the shadow horizontally
yOffsetOffset the shadow vertically
opacityThe opacity of the shadow
drawForegroundShould the layer contents be drawn, or just the shadow

Definition at line 2384 of file IGraphicsStructs.h.

◆ mBlurSize

float IShadow::mBlurSize = 0.f

◆ mDrawForeground

bool IShadow::mDrawForeground = true

◆ mOpacity

float IShadow::mOpacity = 1.f

◆ mPattern

IPattern IShadow::mPattern = COLOR_BLACK

◆ mXOffset

float IShadow::mXOffset = 0.f

◆ mYOffset

float IShadow::mYOffset = 0.f


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