Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FormDef Class Reference

#include <FormDef.h>

Inheritance diagram for FormDef:
WinDef

List of all members.

Public Member Functions

 FormDef (const char *text=0, DWORD style=0)
virtual ~FormDef ()
void Load (const char *filename)
void AddCtrl (CtrlDef *def)
CtrlDefFindCtrl (BYTE ctrl_id)
ListIter< CtrlDefGetControls () 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 TextGetFont () const
void SetText (const char *t)
const TextGetText () const
void SetAltText (const char *t)
const TextGetAltText () const
void SetTexture (const char *t)
const TextGetTexture () 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 InsetsGetMargins () const
void SetTextInsets (const Insets &t)
const InsetsGetTextInsets () const
void SetCellInsets (const Insets &t)
const InsetsGetCellInsets () const
void SetCells (const Rect &r)
const RectGetCells () const
void SetFixedWidth (int w)
int GetFixedWidth () const
void SetFixedHeight (int h)
int GetFixedHeight () const
const LayoutDefGetLayout () 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< CtrlDefcontrols
- 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

Detailed Description

Definition at line 305 of file FormDef.h.


Constructor & Destructor Documentation

FormDef::FormDef ( const char *  text = 0,
DWORD  style = 0 
)

Definition at line 526 of file FormDef.cpp.

FormDef::~FormDef ( )
virtual

Definition at line 531 of file FormDef.cpp.


Member Function Documentation

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.

ListIter< CtrlDef > FormDef::GetControls ( ) const

Definition at line 553 of file FormDef.cpp.

void FormDef::Load ( const char *  filename)

Definition at line 566 of file FormDef.cpp.

void FormDef::ParseColumnDef ( CtrlDef ctrl,
TermStruct val 
)
protected

Definition at line 1170 of file FormDef.cpp.

void FormDef::ParseCtrlDef ( CtrlDef ctrl,
TermStruct val 
)
protected

Definition at line 790 of file FormDef.cpp.

void FormDef::ParseLayoutDef ( LayoutDef def,
TermStruct val 
)
protected

Definition at line 1234 of file FormDef.cpp.

static const char* FormDef::TYPENAME ( )
inlinestatic

Reimplemented from WinDef.

Definition at line 308 of file FormDef.h.


Member Data Documentation

List<CtrlDef> FormDef::controls
protected

Definition at line 326 of file FormDef.h.

CtrlDef FormDef::defctrl
protected

Definition at line 325 of file FormDef.h.


The documentation for this class was generated from the following files: