|
supertux
|
Helper class for InfoBox: Represents a line of text. More...
#include <info_box_line.hpp>
Public Types | |
| enum | LineType { NORMAL, NORMAL_LEFT, SMALL, HEADING, REFERENCE, IMAGE } |
| enum | LineAlignment { LEFT, CENTER, RIGHT } |
Public Member Functions | |
| InfoBoxLine (char format_char, const std::string &text) | |
| void | draw (DrawingContext &context, const Rectf &bbox, int layer, LineAlignment alignment=CENTER) |
| float | get_height () const |
Static Public Member Functions | |
| static std::vector< std::unique_ptr< InfoBoxLine > > | split (const std::string &text, float width) |
| static bool | is_valid_format_char (char format_char) |
Helper class for InfoBox: Represents a line of text.
1.8.13