supertux
Public Types | Public Member Functions | Static Public Member Functions | List of all members
InfoBoxLine Class Referencefinal

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)
 

Detailed Description

Helper class for InfoBox: Represents a line of text.


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