_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
CLabel Class Reference

#include <font.h>

Public Member Functions

 CLabel (const CFont &f, const std::string &nc, const std::string &rc)
 
int Height () const
 
void SetFont (const CFont &f)
 
void SetNormalColor (const std::string &nc)
 

font.cpp - The color fonts.

 CLabel (const CFont &f)
 
int Draw (int x, int y, const char *const text) const
 Draw text/number unclipped. More...
 
int Draw (int x, int y, const std::string &text) const
 
int Draw (int x, int y, int number) const
 
int DrawClip (int x, int y, const char *const text) const
 Draw text/number clipped. More...
 
int DrawClip (int x, int y, const std::string &text, bool is_normal=true) const
 
int DrawClip (int x, int y, int number) const
 
int DrawReverse (int x, int y, const char *const text) const
 Draw reverse text/number unclipped. More...
 
int DrawReverse (int x, int y, const std::string &text) const
 
int DrawReverse (int x, int y, int number) const
 
int DrawReverseClip (int x, int y, const char *const text) const
 Draw reverse text/number clipped. More...
 
int DrawReverseClip (int x, int y, const std::string &text) const
 
int DrawReverseClip (int x, int y, int number) const
 
int DrawCentered (int x, int y, const std::string &text) const
 
int DrawReverseCentered (int x, int y, const std::string &text) const
 

Constructor & Destructor Documentation

◆ CLabel() [1/2]

CLabel::CLabel ( const CFont f,
const std::string &  nc,
const std::string &  rc 
)
inline

◆ CLabel() [2/2]

CLabel::CLabel ( const CFont f)
explicit

Member Function Documentation

◆ Draw() [1/3]

int CLabel::Draw ( int  x,
int  y,
const char *const  text 
) const

Draw text/number unclipped.

◆ Draw() [2/3]

int CLabel::Draw ( int  x,
int  y,
const std::string &  text 
) const

◆ Draw() [3/3]

int CLabel::Draw ( int  x,
int  y,
int  number 
) const

◆ DrawCentered()

int CLabel::DrawCentered ( int  x,
int  y,
const std::string &  text 
) const

◆ DrawClip() [1/3]

int CLabel::DrawClip ( int  x,
int  y,
const char *const  text 
) const

Draw text/number clipped.

◆ DrawClip() [2/3]

int CLabel::DrawClip ( int  x,
int  y,
const std::string &  text,
bool  is_normal = true 
) const

◆ DrawClip() [3/3]

int CLabel::DrawClip ( int  x,
int  y,
int  number 
) const

◆ DrawReverse() [1/3]

int CLabel::DrawReverse ( int  x,
int  y,
const char *const  text 
) const

Draw reverse text/number unclipped.

◆ DrawReverse() [2/3]

int CLabel::DrawReverse ( int  x,
int  y,
const std::string &  text 
) const

◆ DrawReverse() [3/3]

int CLabel::DrawReverse ( int  x,
int  y,
int  number 
) const

◆ DrawReverseCentered()

int CLabel::DrawReverseCentered ( int  x,
int  y,
const std::string &  text 
) const

◆ DrawReverseClip() [1/3]

int CLabel::DrawReverseClip ( int  x,
int  y,
const char *const  text 
) const

Draw reverse text/number clipped.

◆ DrawReverseClip() [2/3]

int CLabel::DrawReverseClip ( int  x,
int  y,
const std::string &  text 
) const

◆ DrawReverseClip() [3/3]

int CLabel::DrawReverseClip ( int  x,
int  y,
int  number 
) const

◆ Height()

int CLabel::Height ( ) const
inline

◆ SetFont()

void CLabel::SetFont ( const CFont f)
inline

◆ SetNormalColor()

void CLabel::SetNormalColor ( const std::string &  nc)
inline

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.