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

#include <FormDef.h>

Inheritance diagram for CtrlDef:
WinDef

List of all members.

Public Member Functions

 CtrlDef (DWORD id=0, DWORD type=WIN_DEF_LABEL, const char *text=0, DWORD style=0)
virtual ~CtrlDef ()
virtual CtrlDefoperator= (const CtrlDef &ctrl)
bool GetActive () const
void SetActive (bool c)
Color GetActiveColor () const
void SetActiveColor (Color c)
bool GetAnimated () const
void SetAnimated (bool bNewValue)
short GetBevelWidth () const
void SetBevelWidth (short nNewValue)
bool GetBorder () const
void SetBorder (bool bNewValue)
Color GetBorderColor () const
void SetBorderColor (Color c)
bool GetDropShadow () const
void SetDropShadow (bool bNewValue)
bool GetIndent () const
void SetIndent (bool bNewValue)
bool GetInvertLabel () const
void SetInvertLabel (bool bNewValue)
int GetOrientation () const
void SetOrientation (int o)
Text GetPicture () const
void SetPicture (const Text &img_name)
short GetPictureLocation () const
void SetPictureLocation (short nNewValue)
short GetPictureType () const
void SetPictureType (short nNewValue)
bool GetSticky () const
void SetSticky (bool bNewValue)
int GetNumLeds () const
void SetNumLeds (int nNewValue)
int NumItems () const
Text GetItem (int i) const
void AddItem (const char *t)
int NumColumns () const
ColumnDefGetColumn (int i) const
void AddColumn (const char *t, int w, int a, int s)
int NumTabs () const
int GetTab (int i) const
void SetTab (int i, int t)
void AddTab (int i)
bool GetShowHeadings () const
void SetShowHeadings (bool bNewValue)
int GetLeading () const
void SetLeading (int nNewValue)
int GetLineHeight () const
void SetLineHeight (int nNewValue)
int GetMultiSelect () const
void SetMultiSelect (int nNewValue)
int GetDragDrop () const
void SetDragDrop (int nNewValue)
int GetScrollBarVisible () const
void SetScrollBarVisible (int nNewValue)
bool GetSmoothScroll () const
void SetSmoothScroll (bool bNewValue)
short GetItemStyle () const
void SetItemStyle (short nNewValue)
short GetSelectedStyle () const
void SetSelectedStyle (short nNewValue)
char GetPasswordChar () const
void SetPasswordChar (char c)
Text GetStandardImage () const
void SetStandardImage (const Text &img_name)
Text GetActivatedImage () const
void SetActivatedImage (const Text &img_name)
Text GetTransitionImage () const
void SetTransitionImage (const Text &img_name)
- 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 Attributes

WORD ctrl_flags
short bevel_width
Color active_color
Color border_color
Text picture
short picture_loc
short picture_type
Text standard_image
Text activated_image
Text transition_image
bool active
bool show_headings
int leading
int line_height
int multiselect
int dragdrop
int scroll_bar
int orientation
int num_leds
short item_style
short selected_style
bool smooth_scroll
List< Textitems
List< ColumnDefcolumns
int ntabs
int tabs [10]
char pass_char
- Protected Attributes inherited from WinDef
DWORD id
DWORD pid
DWORD type
Rect rect
Text font
Text text
Text alt_text
Text texture
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 181 of file FormDef.h.


Constructor & Destructor Documentation

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

Definition at line 85 of file FormDef.cpp.

CtrlDef::~CtrlDef ( )
virtual

Definition at line 116 of file FormDef.cpp.


Member Function Documentation

void CtrlDef::AddColumn ( const char *  t,
int  w,
int  a,
int  s 
)

Definition at line 361 of file FormDef.cpp.

void CtrlDef::AddItem ( const char *  t)

Definition at line 341 of file FormDef.cpp.

void CtrlDef::AddTab ( int  i)

Definition at line 387 of file FormDef.cpp.

Text CtrlDef::GetActivatedImage ( ) const

Definition at line 503 of file FormDef.cpp.

bool CtrlDef::GetActive ( ) const

Definition at line 167 of file FormDef.cpp.

Color CtrlDef::GetActiveColor ( ) const

Definition at line 177 of file FormDef.cpp.

bool CtrlDef::GetAnimated ( ) const

Definition at line 187 of file FormDef.cpp.

short CtrlDef::GetBevelWidth ( ) const

Definition at line 200 of file FormDef.cpp.

bool CtrlDef::GetBorder ( ) const

Definition at line 210 of file FormDef.cpp.

Color CtrlDef::GetBorderColor ( ) const

Definition at line 223 of file FormDef.cpp.

ColumnDef * CtrlDef::GetColumn ( int  i) const

Definition at line 351 of file FormDef.cpp.

int CtrlDef::GetDragDrop ( ) const

Definition at line 433 of file FormDef.cpp.

bool CtrlDef::GetDropShadow ( ) const

Definition at line 233 of file FormDef.cpp.

bool CtrlDef::GetIndent ( ) const

Definition at line 246 of file FormDef.cpp.

bool CtrlDef::GetInvertLabel ( ) const

Definition at line 259 of file FormDef.cpp.

Text CtrlDef::GetItem ( int  i) const

Definition at line 331 of file FormDef.cpp.

short CtrlDef::GetItemStyle ( ) const

Definition at line 463 of file FormDef.cpp.

int CtrlDef::GetLeading ( ) const

Definition at line 403 of file FormDef.cpp.

int CtrlDef::GetLineHeight ( ) const

Definition at line 413 of file FormDef.cpp.

int CtrlDef::GetMultiSelect ( ) const

Definition at line 423 of file FormDef.cpp.

int CtrlDef::GetNumLeds ( ) const

Definition at line 315 of file FormDef.cpp.

int CtrlDef::GetOrientation ( ) const

Definition at line 157 of file FormDef.cpp.

char CtrlDef::GetPasswordChar ( ) const

Definition at line 483 of file FormDef.cpp.

Text CtrlDef::GetPicture ( ) const

Definition at line 272 of file FormDef.cpp.

short CtrlDef::GetPictureLocation ( ) const

Definition at line 282 of file FormDef.cpp.

short CtrlDef::GetPictureType ( ) const

Definition at line 292 of file FormDef.cpp.

int CtrlDef::GetScrollBarVisible ( ) const

Definition at line 443 of file FormDef.cpp.

short CtrlDef::GetSelectedStyle ( ) const

Definition at line 473 of file FormDef.cpp.

bool CtrlDef::GetShowHeadings ( ) const

Definition at line 393 of file FormDef.cpp.

bool CtrlDef::GetSmoothScroll ( ) const

Definition at line 453 of file FormDef.cpp.

Text CtrlDef::GetStandardImage ( ) const

Definition at line 493 of file FormDef.cpp.

bool CtrlDef::GetSticky ( ) const

Definition at line 302 of file FormDef.cpp.

int CtrlDef::GetTab ( int  i) const

Definition at line 371 of file FormDef.cpp.

Text CtrlDef::GetTransitionImage ( ) const

Definition at line 513 of file FormDef.cpp.

int CtrlDef::NumColumns ( ) const

Definition at line 346 of file FormDef.cpp.

int CtrlDef::NumItems ( ) const

Definition at line 326 of file FormDef.cpp.

int CtrlDef::NumTabs ( ) const

Definition at line 366 of file FormDef.cpp.

CtrlDef & CtrlDef::operator= ( const CtrlDef ctrl)
virtual

Definition at line 122 of file FormDef.cpp.

void CtrlDef::SetActivatedImage ( const Text img_name)

Definition at line 508 of file FormDef.cpp.

void CtrlDef::SetActive ( bool  c)

Definition at line 172 of file FormDef.cpp.

void CtrlDef::SetActiveColor ( Color  c)

Definition at line 182 of file FormDef.cpp.

void CtrlDef::SetAnimated ( bool  bNewValue)

Definition at line 192 of file FormDef.cpp.

void CtrlDef::SetBevelWidth ( short  nNewValue)

Definition at line 205 of file FormDef.cpp.

void CtrlDef::SetBorder ( bool  bNewValue)

Definition at line 215 of file FormDef.cpp.

void CtrlDef::SetBorderColor ( Color  c)

Definition at line 228 of file FormDef.cpp.

void CtrlDef::SetDragDrop ( int  nNewValue)

Definition at line 438 of file FormDef.cpp.

void CtrlDef::SetDropShadow ( bool  bNewValue)

Definition at line 238 of file FormDef.cpp.

void CtrlDef::SetIndent ( bool  bNewValue)

Definition at line 251 of file FormDef.cpp.

void CtrlDef::SetInvertLabel ( bool  bNewValue)

Definition at line 264 of file FormDef.cpp.

void CtrlDef::SetItemStyle ( short  nNewValue)

Definition at line 468 of file FormDef.cpp.

void CtrlDef::SetLeading ( int  nNewValue)

Definition at line 408 of file FormDef.cpp.

void CtrlDef::SetLineHeight ( int  nNewValue)

Definition at line 418 of file FormDef.cpp.

void CtrlDef::SetMultiSelect ( int  nNewValue)

Definition at line 428 of file FormDef.cpp.

void CtrlDef::SetNumLeds ( int  nNewValue)

Definition at line 320 of file FormDef.cpp.

void CtrlDef::SetOrientation ( int  o)

Definition at line 162 of file FormDef.cpp.

void CtrlDef::SetPasswordChar ( char  c)

Definition at line 488 of file FormDef.cpp.

void CtrlDef::SetPicture ( const Text img_name)

Definition at line 277 of file FormDef.cpp.

void CtrlDef::SetPictureLocation ( short  nNewValue)

Definition at line 287 of file FormDef.cpp.

void CtrlDef::SetPictureType ( short  nNewValue)

Definition at line 297 of file FormDef.cpp.

void CtrlDef::SetScrollBarVisible ( int  nNewValue)

Definition at line 448 of file FormDef.cpp.

void CtrlDef::SetSelectedStyle ( short  nNewValue)

Definition at line 478 of file FormDef.cpp.

void CtrlDef::SetShowHeadings ( bool  bNewValue)

Definition at line 398 of file FormDef.cpp.

void CtrlDef::SetSmoothScroll ( bool  bNewValue)

Definition at line 458 of file FormDef.cpp.

void CtrlDef::SetStandardImage ( const Text img_name)

Definition at line 498 of file FormDef.cpp.

void CtrlDef::SetSticky ( bool  bNewValue)

Definition at line 307 of file FormDef.cpp.

void CtrlDef::SetTab ( int  i,
int  t 
)

Definition at line 378 of file FormDef.cpp.

void CtrlDef::SetTransitionImage ( const Text img_name)

Definition at line 518 of file FormDef.cpp.

static const char* CtrlDef::TYPENAME ( )
inlinestatic

Reimplemented from WinDef.

Definition at line 184 of file FormDef.h.


Member Data Documentation

Text CtrlDef::activated_image
protected

Definition at line 277 of file FormDef.h.

bool CtrlDef::active
protected

Definition at line 280 of file FormDef.h.

Color CtrlDef::active_color
protected

Definition at line 269 of file FormDef.h.

short CtrlDef::bevel_width
protected

Definition at line 267 of file FormDef.h.

Color CtrlDef::border_color
protected

Definition at line 270 of file FormDef.h.

List<ColumnDef> CtrlDef::columns
protected

Definition at line 296 of file FormDef.h.

WORD CtrlDef::ctrl_flags
protected

Definition at line 266 of file FormDef.h.

int CtrlDef::dragdrop
protected

Definition at line 285 of file FormDef.h.

short CtrlDef::item_style
protected

Definition at line 290 of file FormDef.h.

List<Text> CtrlDef::items
protected

Definition at line 295 of file FormDef.h.

int CtrlDef::leading
protected

Definition at line 282 of file FormDef.h.

int CtrlDef::line_height
protected

Definition at line 283 of file FormDef.h.

int CtrlDef::multiselect
protected

Definition at line 284 of file FormDef.h.

int CtrlDef::ntabs
protected

Definition at line 298 of file FormDef.h.

int CtrlDef::num_leds
protected

Definition at line 288 of file FormDef.h.

int CtrlDef::orientation
protected

Definition at line 287 of file FormDef.h.

char CtrlDef::pass_char
protected

Definition at line 300 of file FormDef.h.

Text CtrlDef::picture
protected

Reimplemented from WinDef.

Definition at line 272 of file FormDef.h.

short CtrlDef::picture_loc
protected

Definition at line 273 of file FormDef.h.

short CtrlDef::picture_type
protected

Definition at line 274 of file FormDef.h.

int CtrlDef::scroll_bar
protected

Definition at line 286 of file FormDef.h.

short CtrlDef::selected_style
protected

Definition at line 291 of file FormDef.h.

bool CtrlDef::show_headings
protected

Definition at line 281 of file FormDef.h.

bool CtrlDef::smooth_scroll
protected

Definition at line 293 of file FormDef.h.

Text CtrlDef::standard_image
protected

Definition at line 276 of file FormDef.h.

int CtrlDef::tabs[10]
protected

Definition at line 299 of file FormDef.h.

Text CtrlDef::transition_image
protected

Definition at line 278 of file FormDef.h.


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