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

Public Member Functions

 line ()
 
 ~line () override
 
void apply_to (pixelmap_editor_t &editor) const override
 
footprint get_footprint () const override
 
- Public Member Functions inherited from vg::element_t
void _internal_set_origin (int x, int y)
 
virtual ~element_t ()=default
 
- Public Member Functions inherited from vg::attr_hidden< line >
linehidden (bool &_hidden_)
 
linehidden (bool &&_hidden_)
 
- Public Member Functions inherited from vg::attr_opacity< line >
lineopacity (float &_opacity_)
 
lineopacity (float &&_opacity_)
 
- Public Member Functions inherited from vg::attr_stroke< line >
linestroke (vg::paint::type &_stroke_)
 
linestroke (vg::paint::type &&_stroke_)
 
linestroke (vg::paint::solid &_stroke_)
 
linestroke (vg::paint::solid &&_stroke_)
 
linestroke (vg::paint::gradient::linear &_stroke_)
 
linestroke (vg::paint::gradient::linear &&_stroke_)
 
linestroke (vg::paint::gradient::radial &_stroke_)
 
linestroke (vg::paint::gradient::radial &&_stroke_)
 
- Public Member Functions inherited from vg::attr_stroke_width< line >
linestroke_width (const quantify::quantity_t< UNIT, T > &_stroke_width_)
 
linestroke_width (quantify::quantity_t< UNIT, T > &&_stroke_width_)
 
linestroke_width (const int &_stroke_width_)
 
linestroke_width (int &&_stroke_width_)
 
- Public Member Functions inherited from vg::attr_stroke_opacity< line >
linestroke_opacity (float &_stroke_opacity_)
 
linestroke_opacity (float &&_stroke_opacity_)
 
- Public Member Functions inherited from vg::attr_stroke_miterlimit< line >
linestroke_miterlimit (int &_stroke_miterlimit_)
 
linestroke_miterlimit (int &&_stroke_miterlimit_)
 
- Public Member Functions inherited from vg::attr_stroke_dasharray< line >
linestroke_dasharray (std::valarray< double > &_stroke_dasharray_)
 
linestroke_dasharray (std::valarray< double > &&_stroke_dasharray_)
 
- Public Member Functions inherited from vg::attr_stroke_dashoffset< line >
linestroke_dashoffset (double &_stroke_dashoffset_)
 
linestroke_dashoffset (double &&_stroke_dashoffset_)
 
- Public Member Functions inherited from vg::attr_stroke_linejoin< line >
linestroke_linejoin (stroke_linejoin_e &_stroke_linejoin_)
 
linestroke_linejoin (stroke_linejoin_e &&_stroke_linejoin_)
 
- Public Member Functions inherited from vg::attr_stroke_linecap< line >
linestroke_linecap (stroke_linecap_e &_stroke_linecap_)
 
linestroke_linecap (stroke_linecap_e &&_stroke_linecap_)
 
- Public Member Functions inherited from vg::attr_x1< line >
linex1 (const quantify::quantity_t< UNIT, T > &_x1_)
 
linex1 (quantify::quantity_t< UNIT, T > &&_x1_)
 
linex1 (const int &_x1_)
 
linex1 (int &&_x1_)
 
- Public Member Functions inherited from vg::attr_y1< line >
liney1 (const quantify::quantity_t< UNIT, T > &_y1_)
 
liney1 (quantify::quantity_t< UNIT, T > &&_y1_)
 
liney1 (const int &_y1_)
 
liney1 (int &&_y1_)
 
- Public Member Functions inherited from vg::attr_x2< line >
linex2 (const quantify::quantity_t< UNIT, T > &_x2_)
 
linex2 (quantify::quantity_t< UNIT, T > &&_x2_)
 
linex2 (const int &_x2_)
 
linex2 (int &&_x2_)
 
- Public Member Functions inherited from vg::attr_y2< line >
liney2 (const quantify::quantity_t< UNIT, T > &_y2_)
 
liney2 (quantify::quantity_t< UNIT, T > &&_y2_)
 
liney2 (const int &_y2_)
 
liney2 (int &&_y2_)
 

Additional Inherited Members

- Public Attributes inherited from vg::element_t
int origin_x = 0
 
int origin_y = 0
 
- Public Attributes inherited from vg::attr_hidden< line >
bool _hidden
 
- Public Attributes inherited from vg::attr_opacity< line >
float _opacity
 
- Public Attributes inherited from vg::attr_stroke< line >
vg::paint::type _stroke
 
- Public Attributes inherited from vg::attr_stroke_width< line >
int _stroke_width
 
- Public Attributes inherited from vg::attr_stroke_opacity< line >
float _stroke_opacity
 
- Public Attributes inherited from vg::attr_stroke_miterlimit< line >
int _stroke_miterlimit
 
- Public Attributes inherited from vg::attr_stroke_dasharray< line >
std::valarray< double > _stroke_dasharray
 
- Public Attributes inherited from vg::attr_stroke_dashoffset< line >
double _stroke_dashoffset
 
- Public Attributes inherited from vg::attr_stroke_linejoin< line >
stroke_linejoin_e _stroke_linejoin
 
- Public Attributes inherited from vg::attr_stroke_linecap< line >
stroke_linecap_e _stroke_linecap
 
- Public Attributes inherited from vg::attr_x1< line >
int _x1
 
- Public Attributes inherited from vg::attr_y1< line >
int _y1
 
- Public Attributes inherited from vg::attr_x2< line >
int _x2
 
- Public Attributes inherited from vg::attr_y2< line >
int _y2
 
- Protected Member Functions inherited from vg::attrs_stroke< line >
void apply_stroke (pixelmap_editor_t &editor) const
 
void set_source_to_stroke (pixelmap_editor_t &editor) const
 
color::Color sample_stroke (int x, int y) const
 

Detailed Description

Definition at line 16 of file line.cppm.

Constructor & Destructor Documentation

◆ line()

vg::line::line ( )
inlineexport

Definition at line 24 of file line.cppm.

+ Here is the call graph for this function:

◆ ~line()

vg::line::~line ( )
inlineoverrideexport

Definition at line 29 of file line.cppm.

Member Function Documentation

◆ apply_to()

void vg::line::apply_to ( pixelmap_editor_t & editor) const
inlineoverrideexportvirtual

Implements vg::element_t.

Definition at line 33 of file line.cppm.

+ Here is the call graph for this function:

◆ get_footprint()

footprint vg::line::get_footprint ( ) const
inlineoverrideexportvirtual

Implements vg::element_t.

Definition at line 49 of file line.cppm.


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