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

#include <FormDef.h>

Inheritance diagram for WinDef:
CtrlDef FormDef

List of all members.

Public Member Functions

 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 Attributes

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

Friends

class FormDef

Detailed Description

Definition at line 77 of file FormDef.h.


Constructor & Destructor Documentation

WinDef::WinDef ( DWORD  id,
DWORD  type,
const char *  text = 0,
DWORD  style = 0 
)

Definition at line 35 of file FormDef.cpp.

virtual WinDef::~WinDef ( )
inlinevirtual

Definition at line 85 of file FormDef.h.


Member Function Documentation

const Text& WinDef::GetAltText ( ) const
inline

Definition at line 114 of file FormDef.h.

Color WinDef::GetBackColor ( ) const
inline

Definition at line 119 of file FormDef.h.

Color WinDef::GetBaseColor ( ) const
inline

Definition at line 121 of file FormDef.h.

const Insets& WinDef::GetCellInsets ( ) const
inline

Definition at line 138 of file FormDef.h.

const Rect& WinDef::GetCells ( ) const
inline

Definition at line 140 of file FormDef.h.

int WinDef::GetFixedHeight ( ) const
inline

Definition at line 145 of file FormDef.h.

int WinDef::GetFixedWidth ( ) const
inline

Definition at line 143 of file FormDef.h.

const Text& WinDef::GetFont ( ) const
inline

Definition at line 110 of file FormDef.h.

Color WinDef::GetForeColor ( ) const
inline

Definition at line 123 of file FormDef.h.

int WinDef::GetH ( ) const
inline

Definition at line 101 of file FormDef.h.

bool WinDef::GetHidePartial ( ) const
inline

Definition at line 131 of file FormDef.h.

DWORD WinDef::GetID ( ) const
inline

Definition at line 89 of file FormDef.h.

const LayoutDef& WinDef::GetLayout ( ) const
inline

Definition at line 147 of file FormDef.h.

const Insets& WinDef::GetMargins ( ) const
inline

Definition at line 134 of file FormDef.h.

DWORD WinDef::GetParentID ( ) const
inline

Definition at line 91 of file FormDef.h.

Rect WinDef::GetRect ( ) const
inline

Definition at line 97 of file FormDef.h.

bool WinDef::GetSingleLine ( ) const
inline

Definition at line 125 of file FormDef.h.

DWORD WinDef::GetStyle ( ) const
inline

Definition at line 107 of file FormDef.h.

const Text& WinDef::GetText ( ) const
inline

Definition at line 112 of file FormDef.h.

DWORD WinDef::GetTextAlign ( ) const
inline

Definition at line 127 of file FormDef.h.

const Insets& WinDef::GetTextInsets ( ) const
inline

Definition at line 136 of file FormDef.h.

const Text& WinDef::GetTexture ( ) const
inline

Definition at line 116 of file FormDef.h.

bool WinDef::GetTransparent ( ) const
inline

Definition at line 129 of file FormDef.h.

DWORD WinDef::GetType ( ) const
inline

Definition at line 93 of file FormDef.h.

int WinDef::GetW ( ) const
inline

Definition at line 100 of file FormDef.h.

int WinDef::GetX ( ) const
inline

Definition at line 98 of file FormDef.h.

int WinDef::GetY ( ) const
inline

Definition at line 99 of file FormDef.h.

bool WinDef::IsEnabled ( ) const
inline

Definition at line 104 of file FormDef.h.

int WinDef::operator== ( const WinDef w) const
inline

Definition at line 87 of file FormDef.h.

void WinDef::SetAltText ( const char *  t)

Definition at line 59 of file FormDef.cpp.

void WinDef::SetBackColor ( Color  c)

Definition at line 61 of file FormDef.cpp.

void WinDef::SetBaseColor ( Color  c)

Definition at line 62 of file FormDef.cpp.

void WinDef::SetCellInsets ( const Insets t)

Definition at line 71 of file FormDef.cpp.

void WinDef::SetCells ( const Rect r)

Definition at line 72 of file FormDef.cpp.

void WinDef::SetEnabled ( bool  enable = true)

Definition at line 55 of file FormDef.cpp.

void WinDef::SetFixedHeight ( int  h)
inline

Definition at line 144 of file FormDef.h.

void WinDef::SetFixedWidth ( int  w)
inline

Definition at line 142 of file FormDef.h.

void WinDef::SetFont ( const char *  t)

Definition at line 57 of file FormDef.cpp.

void WinDef::SetForeColor ( Color  c)

Definition at line 63 of file FormDef.cpp.

void WinDef::SetHidePartial ( bool  a)

Definition at line 67 of file FormDef.cpp.

void WinDef::SetID ( DWORD  id)

Definition at line 51 of file FormDef.cpp.

void WinDef::SetMargins ( const Insets m)

Definition at line 69 of file FormDef.cpp.

void WinDef::SetParentID ( DWORD  id)

Definition at line 52 of file FormDef.cpp.

void WinDef::SetRect ( const Rect r)

Definition at line 54 of file FormDef.cpp.

void WinDef::SetSingleLine ( bool  a)

Definition at line 65 of file FormDef.cpp.

void WinDef::SetStyle ( DWORD  s)

Definition at line 56 of file FormDef.cpp.

void WinDef::SetText ( const char *  t)

Definition at line 58 of file FormDef.cpp.

void WinDef::SetTextAlign ( DWORD  a)

Definition at line 64 of file FormDef.cpp.

void WinDef::SetTextInsets ( const Insets t)

Definition at line 70 of file FormDef.cpp.

void WinDef::SetTexture ( const char *  t)

Definition at line 60 of file FormDef.cpp.

void WinDef::SetTransparent ( bool  t)

Definition at line 66 of file FormDef.cpp.

void WinDef::SetType ( DWORD  type)

Definition at line 53 of file FormDef.cpp.

static const char* WinDef::TYPENAME ( )
inlinestatic

Reimplemented in FormDef, and CtrlDef.

Definition at line 82 of file FormDef.h.


Friends And Related Function Documentation

friend class FormDef
friend

Definition at line 79 of file FormDef.h.


Member Data Documentation

Text WinDef::alt_text
protected

Definition at line 156 of file FormDef.h.

Color WinDef::back_color
protected

Definition at line 165 of file FormDef.h.

Color WinDef::base_color
protected

Definition at line 166 of file FormDef.h.

Insets WinDef::cell_insets
protected

Definition at line 171 of file FormDef.h.

Rect WinDef::cells
protected

Definition at line 172 of file FormDef.h.

bool WinDef::enabled
protected

Definition at line 162 of file FormDef.h.

int WinDef::fixed_height
protected

Definition at line 174 of file FormDef.h.

int WinDef::fixed_width
protected

Definition at line 173 of file FormDef.h.

Text WinDef::font
protected

Definition at line 154 of file FormDef.h.

Color WinDef::fore_color
protected

Definition at line 167 of file FormDef.h.

bool WinDef::hide_partial
protected

Definition at line 164 of file FormDef.h.

DWORD WinDef::id
protected

Definition at line 150 of file FormDef.h.

LayoutDef WinDef::layout
protected

Definition at line 176 of file FormDef.h.

Insets WinDef::margins
protected

Definition at line 169 of file FormDef.h.

Text WinDef::picture
protected

Reimplemented in CtrlDef.

Definition at line 158 of file FormDef.h.

DWORD WinDef::pid
protected

Definition at line 151 of file FormDef.h.

Rect WinDef::rect
protected

Definition at line 153 of file FormDef.h.

bool WinDef::single_line
protected

Definition at line 161 of file FormDef.h.

DWORD WinDef::style
protected

Definition at line 159 of file FormDef.h.

Text WinDef::text
protected

Definition at line 155 of file FormDef.h.

DWORD WinDef::text_align
protected

Definition at line 160 of file FormDef.h.

Insets WinDef::text_insets
protected

Definition at line 170 of file FormDef.h.

Text WinDef::texture
protected

Definition at line 157 of file FormDef.h.

bool WinDef::transparent
protected

Definition at line 163 of file FormDef.h.

DWORD WinDef::type
protected

Definition at line 152 of file FormDef.h.


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