Starshatter_Open
Open source Starshatter engine
|
#include <FormDef.h>
Public Member Functions | |
FormDef (const char *text=0, DWORD style=0) | |
virtual | ~FormDef () |
void | Load (const char *filename) |
void | AddCtrl (CtrlDef *def) |
CtrlDef * | FindCtrl (BYTE ctrl_id) |
ListIter< CtrlDef > | GetControls () const |
Public Member Functions inherited from WinDef | |
WinDef (DWORD id, DWORD type, const char *text=0, DWORD style=0) | |
virtual | ~WinDef () |
int | operator== (const WinDef &w) const |
DWORD | GetID () const |
void | SetID (DWORD id) |
DWORD | GetParentID () const |
void | SetParentID (DWORD id) |
DWORD | GetType () const |
void | SetType (DWORD type) |
void | SetRect (const Rect &r) |
Rect | GetRect () const |
int | GetX () const |
int | GetY () const |
int | GetW () const |
int | GetH () const |
void | SetEnabled (bool enable=true) |
bool | IsEnabled () const |
void | SetStyle (DWORD s) |
DWORD | GetStyle () const |
void | SetFont (const char *t) |
const Text & | GetFont () const |
void | SetText (const char *t) |
const Text & | GetText () const |
void | SetAltText (const char *t) |
const Text & | GetAltText () const |
void | SetTexture (const char *t) |
const Text & | GetTexture () const |
void | SetBackColor (Color c) |
Color | GetBackColor () const |
void | SetBaseColor (Color c) |
Color | GetBaseColor () const |
void | SetForeColor (Color c) |
Color | GetForeColor () const |
void | SetSingleLine (bool a) |
bool | GetSingleLine () const |
void | SetTextAlign (DWORD a) |
DWORD | GetTextAlign () const |
void | SetTransparent (bool t) |
bool | GetTransparent () const |
void | SetHidePartial (bool a) |
bool | GetHidePartial () const |
void | SetMargins (const Insets &m) |
const Insets & | GetMargins () const |
void | SetTextInsets (const Insets &t) |
const Insets & | GetTextInsets () const |
void | SetCellInsets (const Insets &t) |
const Insets & | GetCellInsets () const |
void | SetCells (const Rect &r) |
const Rect & | GetCells () const |
void | SetFixedWidth (int w) |
int | GetFixedWidth () const |
void | SetFixedHeight (int h) |
int | GetFixedHeight () const |
const LayoutDef & | GetLayout () const |
Static Public Member Functions | |
static const char * | TYPENAME () |
Protected Member Functions | |
void | ParseCtrlDef (CtrlDef *ctrl, TermStruct *val) |
void | ParseColumnDef (CtrlDef *ctrl, TermStruct *val) |
void | ParseLayoutDef (LayoutDef *def, TermStruct *val) |
Protected Attributes | |
CtrlDef | defctrl |
List< CtrlDef > | controls |
Protected Attributes inherited from WinDef | |
DWORD | id |
DWORD | pid |
DWORD | type |
Rect | rect |
Text | font |
Text | text |
Text | alt_text |
Text | texture |
Text | picture |
DWORD | style |
DWORD | text_align |
bool | single_line |
bool | enabled |
bool | transparent |
bool | hide_partial |
Color | back_color |
Color | base_color |
Color | fore_color |
Insets | margins |
Insets | text_insets |
Insets | cell_insets |
Rect | cells |
int | fixed_width |
int | fixed_height |
LayoutDef | layout |
FormDef::FormDef | ( | const char * | text = 0 , |
DWORD | style = 0 |
||
) |
Definition at line 526 of file FormDef.cpp.
|
virtual |
Definition at line 531 of file FormDef.cpp.
void FormDef::AddCtrl | ( | CtrlDef * | def | ) |
Definition at line 536 of file FormDef.cpp.
CtrlDef * FormDef::FindCtrl | ( | BYTE | ctrl_id | ) |
Definition at line 542 of file FormDef.cpp.
Definition at line 553 of file FormDef.cpp.
void FormDef::Load | ( | const char * | filename | ) |
Definition at line 566 of file FormDef.cpp.
|
protected |
Definition at line 1170 of file FormDef.cpp.
|
protected |
Definition at line 790 of file FormDef.cpp.
|
protected |
Definition at line 1234 of file FormDef.cpp.
|
inlinestatic |