$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
#include <string>
#include "color.h"
#include "guichan/font.h"
Go to the source code of this file.
Classes | |
class | CFont |
Font definition. More... | |
class | CFontColor |
Font color definition. More... | |
class | CLabel |
include/font.h - The font headerfile. | |
#define | MaxFontColors 9 |
#define | FontRed "red" |
#define | FontGreen "green" |
#define | FontYellow "yellow" |
#define | FontWhite "white" |
#define | FontGrey "grey" |
CFont & | GetSmallFont () |
CFont & | GetGameFont () |
Small font used in stats. | |
void | SetDefaultTextColors (const std::string &normal, const std::string &reverse) |
Normal font used in game. | |
void | GetDefaultTextColors (std::string &normalp, std::string &reversep) |
Get the default text colors for normal and reverse text. | |
std::string | GetLineFont (unsigned int line, const std::string &s, unsigned int maxlen, CFont *font) |
Return the 'line' line of the string 's'. | |
int | GetHotKey (const std::string &text) |
Get the hot key from a string. | |
void | LoadFonts () |
Load and initialize the fonts. | |
void | FreeOpenGLFonts () |
Free OpenGL fonts. | |
void | ReloadFonts () |
Reload OpenGL fonts. | |
void | CleanFonts () |
Cleanup the font module. |
#define FontGreen "green" |
#define FontGrey "grey" |
#define FontRed "red" |
FIXME: should be moved to lua
#define FontWhite "white" |
#define FontYellow "yellow" |
#define MaxFontColors 9 |
void CleanFonts | ( | ) |
Cleanup the font module.
Clean up the font module.
void FreeOpenGLFonts | ( | ) |
Free OpenGL fonts.
Free OpenGL fonts
void GetDefaultTextColors | ( | std::string & | normalp, | |
std::string & | reversep | |||
) |
Get the default text colors for normal and reverse text.
Get the default text colors.
normalp | Normal text color pointer. | |
reversep | Reverse text color pointer. |
CFont& GetGameFont | ( | ) |
Small font used in stats.
int GetHotKey | ( | const std::string & | text | ) |
Get the hot key from a string.
Get the hot key from a string
std::string GetLineFont | ( | unsigned int | line, | |
const std::string & | s, | |||
unsigned int | maxlen, | |||
CFont * | font | |||
) |
Return the 'line' line of the string 's'.
Return the 'line' line of the string 's'.
line | line number. | |
s | multiline string. | |
maxlen | max length of the string (0 : unlimited) (in char if font == NULL else in pixels). | |
font | if specified use font->Width() instead of strlen. |
CFont& GetSmallFont | ( | ) |
Font selector for the font functions. FIXME: should be moved to lua
void LoadFonts | ( | ) |
Load and initialize the fonts.
Load all fonts.
void ReloadFonts | ( | ) |
Reload OpenGL fonts.
Reload OpenGL fonts
void SetDefaultTextColors | ( | const std::string & | normal, | |
const std::string & | reverse | |||
) |
Normal font used in game.
Set the default text colors for normal and reverse text
Set the default text colors.
normal | Normal text color. | |
reverse | Reverse text color. |