CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
vg::paint::gradient::linear Struct Referenceexport
+ Inheritance diagram for vg::paint::gradient::linear:
+ Collaboration diagram for vg::paint::gradient::linear:

Public Member Functions

 linear (std::pair< int, int > start, std::pair< int, int > end, const std::vector< std::pair< double, color::Color > > &_color_stops)
 
void apply_to_source (pixelmap_editor_t &editor, double opacity) const override
 
color::Color sample (int x, int y) const override
 
base_imake_copy () const override
 
paint_type_e get_type () const override
 
bool operator== (const paint::base_i &rhl_) const override
 
- Public Member Functions inherited from vg::paint::base_i
virtual ~base_i ()=default
 

Additional Inherited Members

- Public Attributes inherited from vg::paint::gradient::base_i
std::vector< Cairo::ColorStop > color_stops {}
 
int x0
 
int y0
 
int x1
 
int y1
 

Detailed Description

Definition at line 72 of file attributes.cppm.

Constructor & Destructor Documentation

◆ linear()

vg::paint::gradient::linear::linear ( std::pair< int, int > start,
std::pair< int, int > end,
const std::vector< std::pair< double, color::Color > > & _color_stops )
inlineexport

Definition at line 73 of file attributes.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ apply_to_source()

void vg::paint::gradient::linear::apply_to_source ( pixelmap_editor_t & editor,
double opacity ) const
inlineoverrideexportvirtual

Implements vg::paint::base_i.

Definition at line 93 of file attributes.cppm.

◆ get_type()

paint_type_e vg::paint::gradient::linear::get_type ( ) const
inlineoverrideexportvirtual

Implements vg::paint::base_i.

Definition at line 109 of file attributes.cppm.

+ Here is the caller graph for this function:

◆ make_copy()

base_i * vg::paint::gradient::linear::make_copy ( ) const
inlinenodiscardoverrideexportvirtual

Implements vg::paint::base_i.

Definition at line 105 of file attributes.cppm.

+ Here is the call graph for this function:

◆ operator==()

bool vg::paint::gradient::linear::operator== ( const paint::base_i & rhl_) const
inlineoverrideexportvirtual

Implements vg::paint::base_i.

Definition at line 113 of file attributes.cppm.

+ Here is the call graph for this function:

◆ sample()

color::Color vg::paint::gradient::linear::sample ( int x,
int y ) const
inlineoverrideexportvirtual

Implements vg::paint::base_i.

Definition at line 100 of file attributes.cppm.


The documentation for this struct was generated from the following file: