Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

newfont.h File Reference

#include "global.h"
#include "basestrm.h"
#include "palette.h"

Include dependency graph for newfont.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define lefttext   0
#define centertext   1
#define righttext   2

Typedefs

typedef char charr [49]
typedef signed char tkerning [101][101]
typedef char tkernchartable [256]
typedef tfontpfont

Functions

void expand (void *p1, void *q1, int size)
void showtext2 (const ASCString &TextToOutput, int x1, int x2)
void showtext2c (const ASCString &TextToOutput, int x1, int x2)
pfont loadfont (pnstream stream)
void showtext4 (const char *TextToOutput, int x1, int y1,...)
void showtext4c (const char *TextToOutput, int x1, int y1,...)
void showtext3 (const char *txt, int xpos, int ypos)
void showtext3c (const char *txt, int xpos, int ypos)
int gettextwdth (const char *txt, pfont font)
void shrinkfont (pfont font, int diff)
char * int2string (int i, char *buf)

Variables

tfontsettings activefontsettings
const char * fontid


Define Documentation

#define centertext   1
 

Definition at line 178 of file newfont.h.

Referenced by tdialogbox::disablebutton(), tdialogbox::enablebutton(), tchoice_dlg::init(), tdialogbox::redraw(), showtext3(), showtext3c(), and tshowhistorypaintstat().

#define lefttext   0
 

Definition at line 177 of file newfont.h.

Referenced by tplayerchange::anzeige(), thelpsystem::buildgraphics(), tdialogbox::disablebutton(), tviewtext::displaytext(), tdialogbox::enablebutton(), tdialogbox::execbutton(), infomessage(), tshownewtanks::init(), tresearchinfo::init(), ttributepayments::init(), MirrorMap::init(), tmapgenerator::init(), tstringselect::init(), tdisplaymessage::init(), MultilineEdit::init(), ResizeMap::init(), tbi3preferences::init(), tdialogbox::intedit(), mapeditorMainThread(), tdialogbox::rahmen3(), tviewanytext::redraw(), tchoosetechnology::run(), showtext3(), showtext3c(), and tdialogbox::stredit().

#define righttext   2
 

Definition at line 179 of file newfont.h.

Referenced by tplayerchange::anzeige(), tresearchinfo::init(), showtext3(), showtext3c(), and tshowhistorypaintstat().


Typedef Documentation

typedef char charr[49]
 

Definition at line 103 of file newfont.h.

typedef tfont* pfont
 

Definition at line 155 of file newfont.h.

typedef char tkernchartable[256]
 

Definition at line 114 of file newfont.h.

typedef signed char tkerning[101][101]
 

Definition at line 113 of file newfont.h.


Function Documentation

void expand void *  p1,
void *  q1,
int  size
 

Definition at line 53 of file newfont.cpp.

Referenced by loadfont().

int gettextwdth const char *  txt,
pfont  font
 

Definition at line 215 of file newfont.cpp.

References tfont::character, tfontsettings::font, tfont::kerning, and tcharacter::width.

Referenced by tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::gettextwdth_stredit(), tchoice_dlg::init(), tdisplaymessage::init(), int2string(), tdialogbox::intedit(), tdialogbox::lne(), tdialogbox::rahmen3(), showtext3(), and showtext3c().

char* int2string int  i,
char *  buf
 

Definition at line 446 of file newfont.cpp.

References digit, gettextwdth(), itoa(), tfontsettings::length, and strrr().

pfont loadfont pnstream  stream  ) 
 

Definition at line 107 of file newfont.cpp.

References toldfont::caps, tfont::caps, tfont::character, toldfont::character, tfont::color, toldfont::color, expand(), fontid, toldfont::groundline, tfont::groundline, tfont::height, toldfont::height, toldfont::id, toldfont::kernchartable, toldfont::kerning, tfont::kerning, tcharacter::memposition, toldcharacter::memposition, toldfont::name, tfont::name, tfont::palette, toldfont::palette, toldfont::read(), tcharacter::size, toldcharacter::size, spacewidthkey, strdup(), toldfont::useems, tcharacter::width, and toldcharacter::width.

Referenced by load_font().

void showtext2 const ASCString TextToOutput,
int  x1,
int  x2
 

Definition at line 2124 of file basegfx.cpp.

References activefontsettings, tfontsettings::color, and showtext().

Referenced by tplayerchange::anzeige(), tmapgenerator::buttonpressed(), tdialogbox::disablebutton(), tdialogbox::dispeditstring(), tparagraph::display(), tviewtext::displaysingleline(), tdialogbox::enablebutton(), tdialogbox::execbutton(), tchoice_dlg::init(), tbi3preferences::init(), ResizeMap::init(), tdisplaymessage::init(), tmapgenerator::init(), BuildingValues::init(), UnitPropertyEditor::init(), MirrorMap::init(), ttributepayments::init(), tresearchinfo::init(), tshownewtanks::init(), tdialogbox::rahmen3(), tdialogbox::redraw(), tchoosetechnology::run(), showtext3(), showtext4(), tshowhistorypaintstat(), and tstringselect::viewtext().

void showtext2c const ASCString TextToOutput,
int  x1,
int  x2
 

Definition at line 2129 of file basegfx.cpp.

References showtext().

Referenced by showtext3c(), and showtext4c().

void showtext3 const char *  txt,
int  xpos,
int  ypos
 

Definition at line 244 of file newfont.cpp.

References tfontsettings::background, centertext, tfontsettings::color, gettextwdth(), tfontsettings::justify, lefttext, tfontsettings::length, tfontsettings::markcolor, npop, npush, righttext, s2, s3, and showtext2().

Referenced by tdialogbox::enablebutton().

void showtext3c const char *  txt,
int  xpos,
int  ypos
 

Definition at line 335 of file newfont.cpp.

References tfontsettings::background, centertext, tfontsettings::font, gettextwdth(), tfontsettings::justify, lefttext, tfontsettings::length, tfontsettings::markfont, npop, npush, righttext, s2, s3, and showtext2c().

Referenced by infomessage().

void showtext4 const char *  TextToOutput,
int  x1,
int  y1,
  ...
 

Definition at line 414 of file newfont.cpp.

References showtext2().

void showtext4c const char *  TextToOutput,
int  x1,
int  y1,
  ...
 

Definition at line 426 of file newfont.cpp.

References showtext2c().

void shrinkfont pfont  font,
int  diff
 

Definition at line 204 of file newfont.cpp.

References tfont::character, tfont::kerning, and tcharacter::size.

Referenced by loaddata().


Variable Documentation

tfontsettings activefontsettings
 

Definition at line 51 of file newfont.cpp.

Referenced by tplayerchange::anzeige(), tdialogbox::buildgraphics(), thelpsystem::buildgraphics(), tmapgenerator::buttonpressed(), tparagraph::checkscrolldown(), tdialogbox::disablebutton(), tparagraph::display(), tparagraph::displaycursor(), tviewtext::displaysingleline(), tviewtext::displaytext(), tdialogbox::done(), tdialogbox::editfield(), tdialogbox::enablebutton(), tviewtext::evalcommand(), tdialogbox::execbutton(), tviewtext::fillline(), infomessage(), tchoice_dlg::init(), tbi3preferences::init(), ResizeMap::init(), MultilineEdit::init(), tdialogbox::init(), tdisplaymessage::init(), tstringselect::init(), tmapgenerator::init(), BuildingValues::init(), tres::init(), tminestrength::init(), MirrorMap::init(), ttributepayments::init(), tresearchinfo::init(), tshownewtanks::init(), tdialogbox::intedit(), tdialogbox::lne(), loaddata(), mapeditorMainThread(), tviewtext::nextline(), tdialogbox::rahmen3(), tviewanytext::redraw(), tdialogbox::redraw(), tparagraph::reflow(), tchoosetechnology::run(), tviewtext::setnewlineheight(), tviewtext::setparams(), setstartvariables(), showtext(), showtext2(), tdialogbox::stredit(), tdialogbox::tdialogbox(), tshowhistorypaintstat(), tstringselect::viewtext(), and tdialogbox::~tdialogbox().

const char* fontid
 

Definition at line 45 of file newfont.cpp.

Referenced by loadfont().


Generated on Tue Jun 24 01:54:12 2008 for Advanced Strategic Command by  doxygen 1.4.2