Linear gradient brush.
More...
#include <Brush.h>
|
| LinearGradientBrush (const DRect &r, const stop_list &stops=stop_list(), spread_mode spread=GradientSpreadMode::Pad) |
|
| LinearGradientBrush (const LinearGradientBrush &b) |
|
| LinearGradientBrush (const Rect &r, const stop_list &stops=stop_list(), spread_mode spread=GradientSpreadMode::Pad) |
|
| LinearGradientBrush (double x1, double y1, double x2, double y2, const stop_list &stops=stop_list(), spread_mode spread=GradientSpreadMode::Pad) |
|
| LinearGradientBrush (LinearGradientBrush &&x) |
|
void | GetParameters (double &x1, double &y1, double &x2, double &y2) const |
|
LinearGradientBrush & | operator= (const LinearGradientBrush &b) |
|
LinearGradientBrush & | operator= (LinearGradientBrush &&x) |
|
DRect | Parameters () const |
|
bool | IsGradient () const override |
|
spread_mode | SpreadMode () const |
|
stop_list | Stops () const |
|
| Brush (Brush &&x) |
|
| Brush (const Bitmap &bmp) |
|
| Brush (const Brush &b) |
|
| Brush (RGBA color=0xff000000, style=BrushStyle::Solid) |
|
| ~Brush () override |
|
RGBA | Color () const |
|
bool | IsEmpty () const |
|
bool | IsSolid () const |
|
bool | IsStippled () const |
|
bool | IsTransparent () const |
|
Brush & | operator= (Brush &&x) |
|
Brush & | operator= (const Brush &b) |
|
void | SetColor (RGBA) |
|
void | SetStipple (const Bitmap &) |
|
void | SetStyle (style) |
|
Bitmap | Stipple () const |
|
style | Style () const |
|
virtual | ~UIObject () noexcept(false) |
|
virtual void | EnsureUnique () |
|
bool | IsAlias () const |
|
bool | IsGarbage () const |
|
bool | IsNull () const |
|
bool | IsSameObject (const UIObject &o) const |
|
bool | IsUnique () const |
|
String | ObjectId () const |
|
IsoString | ObjectType () const |
|
bool | operator< (const UIObject &o) const |
|
bool | operator== (const UIObject &o) const |
|
size_type | RefCount () const |
|
void | SetObjectId (const String &id) |
|
TODO: Write a detailed description for LinearGradientBrush.
- See also
- Brush, GradientBrush, RadialGradientBrush, ConicalGradientBrush
Definition at line 449 of file Brush.h.
◆ spread_mode
using pcl::LinearGradientBrush::spread_mode = GradientBrush::spread_mode |
Represents a gradient spread mode. Supported values are defined in the GradientSpreadMode namespace.
Definition at line 457 of file Brush.h.
◆ stop_list
Represents a list of gradient stops.
Definition at line 462 of file Brush.h.
◆ LinearGradientBrush() [1/5]
pcl::LinearGradientBrush::LinearGradientBrush |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2, |
|
|
const stop_list & |
stops = stop_list() , |
|
|
spread_mode |
spread = GradientSpreadMode::Pad |
|
) |
| |
Constructs a LinearGradientBrush object.
- Parameters
-
x1,y1 | Coordinates of the gradient's starting point. |
x2,y2 | Coordinates of the gradient's end point. |
stops | Reference to a list of gradient stops. If an empty list is specified (as by default), two stops will be generated automatically: {0.0,0x00000000} and {1.0,0xFF000000}. |
spread | Gradient spread mode. Supported spread modes are defined in the GradientSpreadMode namespace. The default is GradientSpreadMode::Pad. |
◆ LinearGradientBrush() [2/5]
Constructs a LinearGradientBrush object.
This is an overloaded constructor, provided for convenience. It behaves like the preceding constructor, except the linear gradient parameters are specified as a rectangle r using floating point coordinates.
◆ LinearGradientBrush() [3/5]
Constructs a LinearGradientBrush object.
This is an overloaded constructor, provided for convenience. It behaves like the preceding constructor, except the linear gradient parameters are specified as a rectangle r using integer coordinates.
◆ LinearGradientBrush() [4/5]
Copy constructor. This object will reference the same server-side brush as the specified instance b.
Definition at line 509 of file Brush.h.
◆ LinearGradientBrush() [5/5]
Move constructor.
Definition at line 517 of file Brush.h.
◆ GetParameters()
void pcl::LinearGradientBrush::GetParameters |
( |
double & |
x1, |
|
|
double & |
y1, |
|
|
double & |
x2, |
|
|
double & |
y2 |
|
) |
| const |
Retrieves the linear gradient parameters of this object.
- Parameters
-
[out] | x1,y1 | Coordinates of the gradient's starting point. |
[out] | x2,y2 | Coordinates of the gradient's end point. |
- See also
- Parameters()
◆ operator=() [1/2]
Copy assignment operator. Returns a reference to this object.
Makes this object reference the same server-side brush as the specified instance b. If the previous brush becomes unreferenced, it will be garbage-collected by the PixInsight core application.
Definition at line 529 of file Brush.h.
◆ operator=() [2/2]
Move assignment operator. Returns a reference to this object.
Definition at line 538 of file Brush.h.
◆ Parameters()
DRect pcl::LinearGradientBrush::Parameters |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: