50 : colour (0xff000000), image (
im), transform (t)
55 : colour (
other.colour),
58 transform (
other.transform)
76 : colour (
other.colour),
77 gradient (std::move (
other.gradient)),
78 image (std::move (
other.image)),
79 transform (
other.transform)
87 colour =
other.colour;
88 gradient = std::move (
other.gradient);
89 image = std::move (
other.image);
90 transform =
other.transform;
106bool FillType::operator!= (
const FillType&
other)
const
108 return ! operator== (
other);
137 colour = Colours::black;
Describes the layout and colours that should be used to paint a colour gradient.
Represents a colour, also including a transparency value.
bool isTransparent() const noexcept
Returns true if this colour is completely transparent.
Represents a colour or fill pattern to use for rendering paths.
FillType & operator=(const FillType &)
Makes a copy of another FillType.
Image image
The image that should be used for tiling.
void setColour(Colour newColour) noexcept
Turns this object into a solid colour fill.
void setGradient(const ColourGradient &newGradient)
Turns this object into a gradient fill.
FillType transformed(const AffineTransform &transform) const
Returns a copy of this fill, adding the specified transform applied to the existing transform.
void setOpacity(float newOpacity) noexcept
Changes the opacity that should be used.
AffineTransform transform
The transform that should be applied to the image or gradient that's being drawn.
void setTiledImage(const Image &image, const AffineTransform &transform) noexcept
Turns this object into a tiled image fill type.
Colour colour
The solid colour being used.
FillType() noexcept
Creates a default fill type, of solid black.
~FillType() noexcept
Destructor.
std::unique_ptr< ColourGradient > gradient
Returns the gradient that should be used for filling.
bool isInvisible() const noexcept
Returns true if this fill type is completely transparent.
Holds a fixed-size bitmap.
Type * createCopyIfNotNull(const Type *objectToCopy)
If a pointer is non-null, this returns a new copy of the object that it points to,...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...