71 Colour colour2,
float x2,
float y2,
102 Colour colour2,
float x2);
105 template <
typename Type>
108 return vertical (colourTop, (
float) area.
getY(), colourBottom, (
float) area.
getBottom());
112 template <
typename Type>
115 return horizontal (colourLeft, (
float) area.
getX(), colourRight, (
float) area.
getRight());
140 int addColour (
double proportionAlongGradient,
Colour colour);
143 void removeColour (
int index);
146 void multiplyOpacity (
float multiplier)
noexcept;
150 int getNumColours() const noexcept;
156 double getColourPosition (
int index) const noexcept;
161 Colour getColour (
int index) const noexcept;
166 void setColour (
int index,
Colour newColour) noexcept;
171 Colour getColourAtPosition (
double position) const noexcept;
186 void createLookupTable (
PixelARGB* resultLookupTable,
int numEntries) const noexcept;
192 template <
size_t NumEntries>
193 void createLookupTable (
PixelARGB (&resultLookupTable)[NumEntries]) const noexcept
195 static_assert (NumEntries != 0);
196 createLookupTable (resultLookupTable, NumEntries);
200 bool isOpaque() const noexcept;
203 bool isInvisible() const noexcept;
206 Point<
float> point1, point2;
223 bool operator== (ColourPoint)
const noexcept;
224 bool operator!= (ColourPoint)
const noexcept;
Holds a resizable array of primitive or copy-by-value objects.
Describes the layout and colours that should be used to paint a colour gradient.
static ColourGradient vertical(Colour colourTop, Colour colourBottom, Rectangle< Type > area)
Creates a vertical linear gradient from top to bottom in a rectangle.
static ColourGradient horizontal(Colour colourLeft, Colour colourRight, Rectangle< Type > area)
Creates a horizontal linear gradient from right to left in a rectangle.
Represents a colour, also including a transparency value.
Very simple container class to hold a pointer to some data on the heap.
Represents a 32-bit INTERNAL pixel with premultiplied alpha, and can perform compositing operations w...
A pair of (x, y) coordinates.
Manages a rectangle and allows geometric operations to be performed on it.
ValueType getRight() const noexcept
Returns the x coordinate of the rectangle's right-hand-side.
ValueType getX() const noexcept
Returns the x coordinate of the rectangle's left-hand-side.
ValueType getBottom() const noexcept
Returns the y coordinate of the rectangle's bottom edge.
ValueType getY() const noexcept
Returns the y coordinate of the rectangle's top edge.
#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...