#include <Font.h>
List of all members.
Public Types |
enum | FLAGS { FONT_FIXED_PITCH = 1,
FONT_ALL_CAPS = 2,
FONT_NO_KERN = 4
} |
enum | CHARS {
PIPE_NBSP = 16,
PIPE_VERT = 17,
PIPE_LT = 18,
PIPE_TEE = 19,
PIPE_UL = 20,
PIPE_LL = 21,
PIPE_HORZ = 22,
PIPE_PLUS = 23,
PIPE_MINUS = 24,
ARROW_UP = 25,
ARROW_DOWN = 26,
ARROW_LEFT = 27,
ARROW_RIGHT = 28
} |
Public Member Functions |
| Font () |
| Font (const char *name) |
| ~Font () |
bool | Load (const char *name) |
int | CharWidth (char c) const |
int | SpaceWidth () const |
int | KernWidth (char left, char right) const |
int | StringWidth (const char *str, int len=0) const |
void | DrawText (const char *txt, int count, Rect &txt_rect, DWORD flags, Bitmap *tgt_bitmap=0) |
int | DrawString (const char *txt, int len, int x1, int y1, const Rect &clip, Bitmap *tgt_bitmap=0) |
int | Height () const |
int | Baseline () const |
WORD | GetFlags () const |
void | SetFlags (WORD s) |
Color | GetColor () const |
void | SetColor (const Color &c) |
double | GetExpansion () const |
void | SetExpansion (double e) |
double | GetAlpha () const |
void | SetAlpha (double a) |
int | GetBlend () const |
void | SetBlend (int b) |
void | SetKern (char left, char right, int k=0) |
int | GetCaretIndex () const |
void | SetCaretIndex (int n) |
Static Public Member Functions |
static const char * | TYPENAME () |
Detailed Description
Definition at line 40 of file Font.h.
Member Enumeration Documentation
- Enumerator:
PIPE_NBSP |
|
PIPE_VERT |
|
PIPE_LT |
|
PIPE_TEE |
|
PIPE_UL |
|
PIPE_LL |
|
PIPE_HORZ |
|
PIPE_PLUS |
|
PIPE_MINUS |
|
ARROW_UP |
|
ARROW_DOWN |
|
ARROW_LEFT |
|
ARROW_RIGHT |
|
Definition at line 50 of file Font.h.
- Enumerator:
FONT_FIXED_PITCH |
|
FONT_ALL_CAPS |
|
FONT_NO_KERN |
|
Definition at line 45 of file Font.h.
Constructor & Destructor Documentation
Font::Font |
( |
const char * |
name | ) |
|
Member Function Documentation
int Font::Baseline |
( |
| ) |
const |
|
inline |
int Font::CharWidth |
( |
char |
c | ) |
const |
int Font::DrawString |
( |
const char * |
txt, |
|
|
int |
len, |
|
|
int |
x1, |
|
|
int |
y1, |
|
|
const Rect & |
clip, |
|
|
Bitmap * |
tgt_bitmap = 0 |
|
) |
| |
void Font::DrawText |
( |
const char * |
txt, |
|
|
int |
count, |
|
|
Rect & |
txt_rect, |
|
|
DWORD |
flags, |
|
|
Bitmap * |
tgt_bitmap = 0 |
|
) |
| |
double Font::GetAlpha |
( |
| ) |
const |
|
inline |
int Font::GetBlend |
( |
| ) |
const |
|
inline |
int Font::GetCaretIndex |
( |
| ) |
const |
|
inline |
Color Font::GetColor |
( |
| ) |
const |
|
inline |
double Font::GetExpansion |
( |
| ) |
const |
|
inline |
WORD Font::GetFlags |
( |
| ) |
const |
|
inline |
int Font::Height |
( |
| ) |
const |
|
inline |
int Font::KernWidth |
( |
char |
left, |
|
|
char |
right |
|
) |
| const |
bool Font::Load |
( |
const char * |
name | ) |
|
void Font::SetAlpha |
( |
double |
a | ) |
|
|
inline |
void Font::SetBlend |
( |
int |
b | ) |
|
|
inline |
void Font::SetCaretIndex |
( |
int |
n | ) |
|
|
inline |
void Font::SetColor |
( |
const Color & |
c | ) |
|
|
inline |
void Font::SetExpansion |
( |
double |
e | ) |
|
|
inline |
void Font::SetFlags |
( |
WORD |
s | ) |
|
|
inline |
void Font::SetKern |
( |
char |
left, |
|
|
char |
right, |
|
|
int |
k = 0 |
|
) |
| |
int Font::SpaceWidth |
( |
| ) |
const |
int Font::StringWidth |
( |
const char * |
str, |
|
|
int |
len = 0 |
|
) |
| const |
static const char* Font::TYPENAME |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files:
- D:/SRC/StarshatterSVN/nGenEx/Font.h
- D:/SRC/StarshatterSVN/nGenEx/Font.cpp