Gin
Loading...
Searching...
No Matches
ShadowSpec Struct Reference

One layer of a CSS-style box shadow: an offset, a blur radius, a spread and a colour (its alpha the shadow's opacity). More...

#include <gin_shadows.h>

Public Member Functions

bool operator== (const ShadowSpec &other) const
bool operator!= (const ShadowSpec &other) const

Public Attributes

juce::Point< float > offset
float blur = 0.0f
float spread = 0.0f
juce::Colour colour { juce::Colours::black }

Detailed Description

One layer of a CSS-style box shadow: an offset, a blur radius, a spread and a colour (its alpha the shadow's opacity).

How the blur looks is the renderer's (see BoxShadow).

Member Function Documentation

◆ operator==()

bool ShadowSpec::operator== ( const ShadowSpec & other) const

References blur, colour, offset, and spread.

Referenced by operator!=().

◆ operator!=()

bool ShadowSpec::operator!= ( const ShadowSpec & other) const

References operator==().

Member Data Documentation

◆ offset

juce::Point<float> ShadowSpec::offset

Referenced by operator==().

◆ blur

float ShadowSpec::blur = 0.0f

Referenced by operator==().

◆ spread

float ShadowSpec::spread = 0.0f

Referenced by operator==().

◆ colour

juce::Colour ShadowSpec::colour { juce::Colours::black }

Referenced by operator==().


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