|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Represents a text string positioned at a 2D point. More...
#include <point.H>
Public Member Functions | |
| Text (Point p, const std::string &str) | |
| Constructs a Text object. | |
| Text ()=default | |
| Default constructor. | |
| const size_t & | len () const |
| Gets the estimated length of the text. | |
| const Point & | get_point () const |
| Gets the position point of the text. | |
| const std::string & | get_str () const |
| Gets the text string. | |
| Point | highest_point () const |
| Gets the highest point (the anchor point). | |
| Point | lowest_point () const |
| Gets the lowest point (the anchor point). | |
| Point | leftmost_point () const |
| Gets the leftmost point (the anchor point). | |
| Point | rightmost_point () const |
| Gets the rightmost point (the anchor point). | |
Public Member Functions inherited from Aleph::Geom_Object | |
| Geom_Object ()=default | |
| virtual | ~Geom_Object ()=default |
Static Public Attributes | |
| static constexpr double | font_width_in_points = 0.8 |
| static constexpr double | font_height_in_points = 1.2 |
Private Attributes | |
| Point | p_ |
| std::string | str_ |
| size_t | len_ = 0 |
|
default |
Default constructor.
Gets the position point of the text.
Definition at line 2769 of file point.H.
References p_.
Referenced by Aleph::Tikz_Plane::draw_text(), and Eepic_Plane::draw_text().
|
inline |
Gets the text string.
Definition at line 2775 of file point.H.
References str_.
Referenced by Aleph::Tikz_Plane::draw_text(), and Eepic_Plane::draw_text().
|
inline |
Gets the highest point (the anchor point).
Definition at line 2778 of file point.H.
References p_.
Referenced by Aleph::Tikz_Plane::bbox_of().
|
inline |
Gets the leftmost point (the anchor point).
Definition at line 2790 of file point.H.
References p_.
Referenced by Aleph::Tikz_Plane::bbox_of().
|
inline |
Gets the estimated length of the text.
Definition at line 2766 of file point.H.
References len_.
Referenced by Eepic_Plane::draw_text().
|
inline |
Gets the lowest point (the anchor point).
Definition at line 2784 of file point.H.
References p_.
Referenced by Aleph::Tikz_Plane::bbox_of().
|
inline |
Gets the rightmost point (the anchor point).
Definition at line 2796 of file point.H.
References p_.
Referenced by Aleph::Tikz_Plane::bbox_of().
Definition at line 2749 of file point.H.
Referenced by Eepic_Plane::draw_text().
Definition at line 2747 of file point.H.
Referenced by Eepic_Plane::draw_text().
|
private |
Definition at line 2740 of file point.H.
Referenced by get_point(), highest_point(), leftmost_point(), lowest_point(), and rightmost_point().
|
private |