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

Public Member Functions

 text (std::string _text)
 
 ~text () override
 
void apply_to (pixelmap_editor_t &editor) const override
 
footprint get_footprint () const override
 
font_extents_t get_font_extents () const
 
text_extents_t get_text_extents () const
 
- 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< text >
texthidden (bool &_hidden_)
 
texthidden (bool &&_hidden_)
 
- Public Member Functions inherited from vg::attr_opacity< text >
textopacity (float &_opacity_)
 
textopacity (float &&_opacity_)
 
- Public Member Functions inherited from vg::attr_fill< text >
textfill (vg::paint::type &_fill_)
 
textfill (vg::paint::type &&_fill_)
 
textfill (vg::paint::solid &_fill_)
 
textfill (vg::paint::solid &&_fill_)
 
textfill (vg::paint::gradient::linear &_fill_)
 
textfill (vg::paint::gradient::linear &&_fill_)
 
textfill (vg::paint::gradient::radial &_fill_)
 
textfill (vg::paint::gradient::radial &&_fill_)
 
- Public Member Functions inherited from vg::attr_fill_opacity< text >
textfill_opacity (double &_fill_opacity_)
 
textfill_opacity (double &&_fill_opacity_)
 
- Public Member Functions inherited from vg::attr_fill_rule< text >
textfill_rule (fill_rule_e &_fill_rule_)
 
textfill_rule (fill_rule_e &&_fill_rule_)
 
- Public Member Functions inherited from vg::attr_font_family< text >
textfont_family (std::string &_font_family_)
 
textfont_family (std::string &&_font_family_)
 
- Public Member Functions inherited from vg::attr_font_size< text >
textfont_size (int &_font_size_)
 
textfont_size (int &&_font_size_)
 
- Public Member Functions inherited from vg::attr_font_stretch< text >
textfont_stretch (double &_font_stretch_)
 
textfont_stretch (double &&_font_stretch_)
 
- Public Member Functions inherited from vg::attr_font_style< text >
textfont_style (font_style_e &_font_style_)
 
textfont_style (font_style_e &&_font_style_)
 
- Public Member Functions inherited from vg::attr_font_weight< text >
textfont_weight (font_weight_e &_font_weight_)
 
textfont_weight (font_weight_e &&_font_weight_)
 
- Public Member Functions inherited from vg::attr_x< text >
textx (const quantify::quantity_t< UNIT, T > &_x_)
 
textx (quantify::quantity_t< UNIT, T > &&_x_)
 
textx (const int &_x_)
 
textx (int &&_x_)
 
- Public Member Functions inherited from vg::attr_y< text >
texty (const quantify::quantity_t< UNIT, T > &_y_)
 
texty (quantify::quantity_t< UNIT, T > &&_y_)
 
texty (const int &_y_)
 
texty (int &&_y_)
 
- Public Member Functions inherited from vg::attr_rotate< text >
textrotate (double &_rotate_)
 
textrotate (double &&_rotate_)
 
- Public Member Functions inherited from vg::attr_pivot_x< text >
textpivot_x (const quantify::quantity_t< UNIT, T > &_pivot_x_)
 
textpivot_x (quantify::quantity_t< UNIT, T > &&_pivot_x_)
 
textpivot_x (const int &_pivot_x_)
 
textpivot_x (int &&_pivot_x_)
 
- Public Member Functions inherited from vg::attr_pivot_y< text >
textpivot_y (const quantify::quantity_t< UNIT, T > &_pivot_y_)
 
textpivot_y (quantify::quantity_t< UNIT, T > &&_pivot_y_)
 
textpivot_y (const int &_pivot_y_)
 
textpivot_y (int &&_pivot_y_)
 
- Public Member Functions inherited from vg::attr_scale_x< text >
textscale_x (double &_scale_x_)
 
textscale_x (double &&_scale_x_)
 
- Public Member Functions inherited from vg::attr_scale_y< text >
textscale_y (double &_scale_y_)
 
textscale_y (double &&_scale_y_)
 
- Public Member Functions inherited from vg::attr_w< text >
textw (const quantify::quantity_t< UNIT, T > &_w_)
 
textw (quantify::quantity_t< UNIT, T > &&_w_)
 
textw (const int &_w_)
 
textw (int &&_w_)
 
- Public Member Functions inherited from vg::attr_h< text >
texth (const quantify::quantity_t< UNIT, T > &_h_)
 
texth (quantify::quantity_t< UNIT, T > &&_h_)
 
texth (const int &_h_)
 
texth (int &&_h_)
 

Public Attributes

std::string _text
 
- Public Attributes inherited from vg::element_t
int origin_x = 0
 
int origin_y = 0
 
- Public Attributes inherited from vg::attr_hidden< text >
bool _hidden
 
- Public Attributes inherited from vg::attr_opacity< text >
float _opacity
 
- Public Attributes inherited from vg::attr_fill< text >
vg::paint::type _fill
 
- Public Attributes inherited from vg::attr_fill_opacity< text >
double _fill_opacity
 
- Public Attributes inherited from vg::attr_fill_rule< text >
fill_rule_e _fill_rule
 
- Public Attributes inherited from vg::attr_font_family< text >
std::string _font_family
 
- Public Attributes inherited from vg::attr_font_size< text >
int _font_size
 
- Public Attributes inherited from vg::attr_font_stretch< text >
double _font_stretch
 
- Public Attributes inherited from vg::attr_font_style< text >
font_style_e _font_style
 
- Public Attributes inherited from vg::attr_font_weight< text >
font_weight_e _font_weight
 
- Public Attributes inherited from vg::attr_x< text >
int _x
 
- Public Attributes inherited from vg::attr_y< text >
int _y
 
- Public Attributes inherited from vg::attr_rotate< text >
double _rotate
 
- Public Attributes inherited from vg::attr_pivot_x< text >
int _pivot_x
 
- Public Attributes inherited from vg::attr_pivot_y< text >
int _pivot_y
 
- Public Attributes inherited from vg::attr_scale_x< text >
double _scale_x
 
- Public Attributes inherited from vg::attr_scale_y< text >
double _scale_y
 
- Public Attributes inherited from vg::attr_w< text >
int _w
 
- Public Attributes inherited from vg::attr_h< text >
int _h
 

Additional Inherited Members

- Protected Member Functions inherited from vg::attrs_fill< text >
void apply_fill (pixelmap_editor_t &editor) const
 
void set_source_to_fill (pixelmap_editor_t &editor) const
 
color::Color sample_fill (int x, int y) const
 
- Protected Member Functions inherited from vg::attrs_font< text >
void apply_font (pixelmap_editor_t &editor) const
 

Detailed Description

Definition at line 19 of file text.cppm.

Constructor & Destructor Documentation

◆ text()

vg::text::text ( std::string _text)
inlineexplicitexport

Definition at line 34 of file text.cppm.

◆ ~text()

vg::text::~text ( )
inlineoverrideexport

Definition at line 38 of file text.cppm.

Member Function Documentation

◆ apply_to()

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

Implements vg::element_t.

Definition at line 41 of file text.cppm.

+ Here is the call graph for this function:

◆ get_font_extents()

font_extents_t vg::text::get_font_extents ( ) const
inlineexport

Definition at line 90 of file text.cppm.

+ Here is the call graph for this function:

◆ get_footprint()

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

Implements vg::element_t.

Definition at line 69 of file text.cppm.

+ Here is the call graph for this function:

◆ get_text_extents()

text_extents_t vg::text::get_text_extents ( ) const
inlineexport

Definition at line 102 of file text.cppm.

+ Here is the call graph for this function:

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