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

CLabel Class Reference

#include <font.h>

List of all members.


font.cpp - The color fonts.

 CLabel (const CFont &f)
int Draw (int x, int y, const char *const text) const
 Draw text/number unclipped.
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.
int DrawClip (int x, int y, const std::string &text) 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.
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.
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

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)

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::Height (  )  const [inline]

void CLabel::SetFont ( const CFont f  )  [inline]

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

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::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 
) 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::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::DrawCentered ( int  x,
int  y,
const std::string &  text 
) const


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.