cairomm 1.14.4
|
#include <cairomm/pattern.h>
Public Member Functions | |
SolidPattern (cairo_pattern_t*cobject, bool has_reference=false) | |
Create a C++ wrapper for the C instance. | |
void | get_rgba (double& red, double& green, double& blue, double& alpha) const |
Gets the solid color for a solid color pattern. | |
~SolidPattern () override | |
![]() | |
Pattern (cairo_pattern_t*cobject, bool has_reference=false) | |
Create a C++ wrapper for the C instance. | |
Pattern (const Pattern&)=delete | |
Pattern& | operator= (const Pattern&)=delete |
virtual | ~Pattern () |
void | set_matrix (const Matrix&matrix) |
Sets the pattern's transformation matrix to @matrix. | |
void | get_matrix (Matrix&matrix) const |
Returns the pattern's transformation matrix. | |
Matrix | get_matrix () const |
Returns the pattern's transformation matrix. | |
void | set_matrix (const cairo_matrix_t&matrix) |
void | get_matrix (cairo_matrix_t&matrix) const |
PatternType | get_type () const |
Returns the type of the pattern. | |
void | set_extend (Extend extend) |
Sets the mode to be used for drawing outside the area of a pattern. | |
Extend | get_extend () const |
Gets the current extend mode See Cairo::Extend for details on the semantics of each extend strategy. | |
cobject* | cobj () |
const cobject* | cobj () const |
void | reference () const |
void | unreference () const |
Static Public Member Functions | |
static RefPtr< SolidPattern > | create_rgb (double red, double green, double blue) |
Creates a new Cairo::Pattern corresponding to an opaque color. | |
static RefPtr< SolidPattern > | create_rgba (double red, double green, double blue, double alpha) |
Creates a new Cairo::Pattern corresponding to a translucent color. | |
Additional Inherited Members | |
![]() | |
typedef cairo_pattern_t | cobject |
![]() | |
Pattern () | |
![]() | |
cobject* | m_cobject |
|
explicit |
Create a C++ wrapper for the C instance.
cobject | The C instance. |
has_reference | Whether we already have a reference. Otherwise, the constructor will take an extra reference. |
|
override |
|
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.
red | red component of the color |
green | green component of the color |
blue | blue component of the color |
|
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.
red | red component of the color |
green | green component of the color |
blue | blue component of the color |
alpha | alpha component of the color |
void Cairo::SolidPattern::get_rgba | ( | double & | red, |
double & | green, | ||
double & | blue, | ||
double & | alpha | ||
) | const |
Gets the solid color for a solid color pattern.
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 |