iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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
 

Detailed Description

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

Use with IGraphics::ApplyLayerDropShadow()

Definition at line 2362 of file IGraphicsStructs.h.

Constructor & Destructor Documentation

◆ IShadow() [1/2]

IShadow::IShadow ( )
inline

Definition at line 2364 of file IGraphicsStructs.h.

◆ 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 2373 of file IGraphicsStructs.h.

Member Data Documentation

◆ mBlurSize

float IShadow::mBlurSize = 0.f

Definition at line 2383 of file IGraphicsStructs.h.

◆ mDrawForeground

bool IShadow::mDrawForeground = true

Definition at line 2387 of file IGraphicsStructs.h.

◆ mOpacity

float IShadow::mOpacity = 1.f

Definition at line 2386 of file IGraphicsStructs.h.

◆ mPattern

IPattern IShadow::mPattern = COLOR_BLACK

Definition at line 2382 of file IGraphicsStructs.h.

◆ mXOffset

float IShadow::mXOffset = 0.f

Definition at line 2384 of file IGraphicsStructs.h.

◆ mYOffset

float IShadow::mYOffset = 0.f

Definition at line 2385 of file IGraphicsStructs.h.


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