Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXRotatableFont Class Reference

A Rotatable Font is like any other font, in that you can draw the font onto your FXDC. More...

#include <FXRotatableFont.h>

Inheritance diagram for FXEX::FXRotatableFont::

FXFont List of all members.

Public Methods

 FXRotatableFont (FXApp *a, const FXFontDesc &fontdesc, FXfloat ang=0)
 FXRotatableFont (FXApp *a, const FXString &face, FXuint sz, FXfloat ang=0, FXuint wt=FONTWEIGHT_NORMAL, FXuint sl=FONTSLANT_REGULAR, FXuint enc=FONTENCODING_DEFAULT, FXuint setw=FONTSETWIDTH_DONTCARE, FXuint h=0)
void displayText (FXDC &dc, const FXString &str, FXint xstart, FXint ystart)
FXfloat getAngle () const
void setAngle (FXfloat ang)
void create ()

Detailed Description

A Rotatable Font is like any other font, in that you can draw the font onto your FXDC.

It differs in that it has the ability to be able to draw the font at a specified angle, rather than the tradional left-to-right.

Definition at line 71 of file FXRotatableFont.h.


Constructor & Destructor Documentation

FXEX::FXRotatableFont::FXRotatableFont FXApp * a,
const FXFontDesc & fontdesc,
FXfloat ang = 0
 

Construct font from font description.

FXEX::FXRotatableFont::FXRotatableFont FXApp * a,
const FXString & face,
FXuint sz,
FXfloat ang = 0,
FXuint wt = FONTWEIGHT_NORMAL,
FXuint sl = FONTSLANT_REGULAR,
FXuint enc = FONTENCODING_DEFAULT,
FXuint setw = FONTSETWIDTH_DONTCARE,
FXuint h = 0
 

Construct a font with given face name, size in points(pixels), weight, slant, character set encoding, setwidth, and hints.


Member Function Documentation

void FXEX::FXRotatableFont::displayText FXDC & dc,
const FXString & str,
FXint xstart,
FXint ystart
 

display text using font.

FXfloat FXEX::FXRotatableFont::getAngle const [inline]
 

return angle.

Definition at line 88 of file FXRotatableFont.h.

void FXEX::FXRotatableFont::setAngle FXfloat ang
 

set to new angle.

void FXEX::FXRotatableFont::create
 

create font resources.