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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::CLabel ( const CFont f,
const std::string &  nc,
const std::string &  rc 
)
inline
CLabel::CLabel ( const CFont f)
explicit

Member Function Documentation

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

Draw text/number unclipped.

int CLabel::Draw ( int  x,
int  y,
const std::string &  text 
) const
int CLabel::Draw ( int  x,
int  y,
int  number 
) const
int CLabel::DrawCentered ( int  x,
int  y,
const std::string &  text 
) const
int CLabel::DrawClip ( int  x,
int  y,
const char *const  text 
) const

Draw text/number clipped.

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

Draw reverse text/number unclipped.

int CLabel::DrawReverse ( int  x,
int  y,
const std::string &  text 
) const
int CLabel::DrawReverse ( int  x,
int  y,
int  number 
) const
int CLabel::DrawReverseCentered ( int  x,
int  y,
const std::string &  text 
) const
int CLabel::DrawReverseClip ( int  x,
int  y,
const char *const  text 
) const

Draw reverse text/number clipped.

int CLabel::DrawReverseClip ( int  x,
int  y,
const std::string &  text 
) const
int CLabel::DrawReverseClip ( int  x,
int  y,
int  number 
) const
int CLabel::Height ( ) const
inline
void CLabel::SetFont ( const CFont f)
inline
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.