Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Text Class Reference

#include <point.H>

Inheritance diagram for Text:
[legend]
Collaboration diagram for Text:
[legend]

Public Member Functions

 Text (const Point &__p, const std::string &__str)
 
 Text ()
 
const size_t & len () const
 
const Pointget_point () const
 
const std::string & get_str () const
 
Point highest_point () const
 
Point lowest_point () const
 
Point leftmost_point () const
 
Point rightmost_point () const
 
- Public Member Functions inherited from Geom_Object
 Geom_Object ()=default
 
virtual ~Geom_Object ()=default
 

Static Public Attributes

static const double font_width_in_points = 40.0
 
static const double font_height_in_points = 20.0
 

Private Attributes

Point p
 
std::string str
 
size_t __len
 

Detailed Description

Definition at line 1523 of file point.H.

Constructor & Destructor Documentation

◆ Text() [1/2]

Text::Text ( const Point __p,
const std::string &  __str 
)
inline

Definition at line 1536 of file point.H.

◆ Text() [2/2]

Text::Text ( )
inline

Definition at line 1542 of file point.H.

Member Function Documentation

◆ get_point()

const Point & Text::get_point ( ) const
inline

Definition at line 1548 of file point.H.

References p.

Referenced by Eepic_Plane::draw_text().

◆ get_str()

const std::string & Text::get_str ( ) const
inline

Definition at line 1553 of file point.H.

References str.

Referenced by Eepic_Plane::draw_text().

◆ highest_point()

Point Text::highest_point ( ) const
inline

Definition at line 1555 of file point.H.

References p.

◆ leftmost_point()

Point Text::leftmost_point ( ) const
inline

Definition at line 1565 of file point.H.

References p.

◆ len()

const size_t & Text::len ( ) const
inline

Definition at line 1546 of file point.H.

References __len.

Referenced by Eepic_Plane::draw_text().

◆ lowest_point()

Point Text::lowest_point ( ) const
inline

Definition at line 1560 of file point.H.

References p.

◆ rightmost_point()

Point Text::rightmost_point ( ) const
inline

Definition at line 1570 of file point.H.

References p.

Member Data Documentation

◆ __len

size_t Text::__len
private

Definition at line 1529 of file point.H.

Referenced by len().

◆ font_height_in_points

const double Text::font_height_in_points = 20.0
static

Definition at line 1534 of file point.H.

Referenced by Eepic_Plane::draw_text().

◆ font_width_in_points

const double Text::font_width_in_points = 40.0
static

Definition at line 1532 of file point.H.

Referenced by Eepic_Plane::draw_text().

◆ p

Point Text::p
private

Definition at line 1525 of file point.H.

Referenced by get_point(), highest_point(), leftmost_point(), lowest_point(), and rightmost_point().

◆ str

std::string Text::str
private

Definition at line 1527 of file point.H.

Referenced by get_str().


The documentation for this class was generated from the following files: