85 bool isColour() const noexcept {
return gradient ==
nullptr && image.isNull(); }
88 bool isGradient() const noexcept {
return gradient !=
nullptr; }
95 void setColour (
Colour newColour)
noexcept;
109 void setOpacity (
float newOpacity)
noexcept;
117 bool isInvisible() const noexcept;
149 bool operator== (const
FillType&) const;
150 bool operator!= (const
FillType&) const;
Describes the layout and colours that should be used to paint a colour gradient.
Represents a colour, also including a transparency value.
float getFloatAlpha() const noexcept
Returns the colour's alpha (opacity) as a floating point value.
Represents a colour or fill pattern to use for rendering paths.
bool isGradient() const noexcept
Returns true if this is a gradient fill.
float getOpacity() const noexcept
Returns the current opacity to be applied to the colour, gradient, or image.
bool isTiledImage() const noexcept
Returns true if this is a tiled image pattern fill.
bool isColour() const noexcept
Returns true if this is a solid colour fill, and not a gradient or image.
Holds a fixed-size bitmap.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...