#include <cairomm/pattern.h>
◆ SolidPattern()
Cairo::SolidPattern::SolidPattern |
( |
cairo_pattern_t * | cobject, |
|
|
bool | has_reference = false ) |
|
explicit |
Create a C++ wrapper for the C instance.
- Parameters
-
cobject | The C instance. |
has_reference | Whether we already have a reference. Otherwise, the constructor will take an extra reference. |
◆ ~SolidPattern()
Cairo::SolidPattern::~SolidPattern |
( |
| ) |
|
|
override |
◆ create_rgb()
static RefPtr< SolidPattern > Cairo::SolidPattern::create_rgb |
( |
double | red, |
|
|
double | green, |
|
|
double | blue ) |
|
static |
Creates a new Cairo::Pattern corresponding to an opaque color.
The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.
- Parameters
-
red | red component of the color |
green | green component of the color |
blue | blue component of the color |
◆ create_rgba()
static RefPtr< SolidPattern > Cairo::SolidPattern::create_rgba |
( |
double | red, |
|
|
double | green, |
|
|
double | blue, |
|
|
double | alpha ) |
|
static |
Creates a new Cairo::Pattern corresponding to a translucent color.
The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.
- Parameters
-
red | red component of the color |
green | green component of the color |
blue | blue component of the color |
alpha | alpha component of the color |
◆ get_rgba()
void Cairo::SolidPattern::get_rgba |
( |
double & | red, |
|
|
double & | green, |
|
|
double & | blue, |
|
|
double & | alpha ) const |
Gets the solid color for a solid color pattern.
- Parameters
-
red | return value for red component of color |
green | return value for green component of color |
blue | return value for blue component of color |
alpha | return value for alpha component of color |
- Since
- 1.4
The documentation for this class was generated from the following file: