STLL  0.0
Simple Text Layouting Library
STLL::Shape_c Class Referenceabstract

base class to define the shape to layout text into More...

Inheritance diagram for STLL::Shape_c:
STLL::RectangleShape_c

Public Member Functions

virtual int32_t getLeft (int32_t top, int32_t bottom) const =0
 get the left edge More...
 
virtual int32_t getRight (int32_t top, int32_t bottom) const =0
 get the right edge More...
 
virtual int32_t getLeft2 (int32_t top, int32_t bottom) const =0
 get the left edge More...
 
virtual int32_t getRight2 (int32_t top, int32_t bottom) const =0
 get the right edge More...
 

Detailed Description

base class to define the shape to layout text into

The layouting works line-wise, this class will give the left and right edge of the available space for a line of text. As the line has a vertical size the functions in this class will get the top and bottom of the y-area that the line is supposed to be in. The function then need to check where the left and right edges are for this area, e.g. they must take care that they return the smallest area.

Member Function Documentation

virtual int32_t STLL::Shape_c::getLeft ( int32_t  top,
int32_t  bottom 
) const
pure virtual

get the left edge

Parameters
toptop limit of the area to get the edge for
bottombottom limit
Returns
the left edge usable for this section of the y-axis in 1/64th pixels

Implemented in STLL::RectangleShape_c.

virtual int32_t STLL::Shape_c::getLeft2 ( int32_t  top,
int32_t  bottom 
) const
pure virtual

get the left edge

Parameters
toptop limit of the area to get the edge for
bottombottom limit
Returns
the left outer edge for this section of the y-axis in 1/64th pixels

Implemented in STLL::RectangleShape_c.

virtual int32_t STLL::Shape_c::getRight ( int32_t  top,
int32_t  bottom 
) const
pure virtual

get the right edge

Parameters
toptop limit of the area to get the edge for
bottombottom limit
Returns
the right edge usable for this section of the y-axis in 1/64th pixels

Implemented in STLL::RectangleShape_c.

virtual int32_t STLL::Shape_c::getRight2 ( int32_t  top,
int32_t  bottom 
) const
pure virtual

get the right edge

Parameters
toptop limit of the area to get the edge for
bottombottom limit
Returns
the right outer edge for this section of the y-axis in 1/64th pixels

Implemented in STLL::RectangleShape_c.


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