Starshatter_Open
Open source Starshatter engine
|
#include <ActiveWindow.h>
Public Member Functions | |
ActiveWindow (Screen *s, int ax, int ay, int aw, int ah, DWORD id=0, DWORD style=0, ActiveWindow *parent=0) | |
virtual | ~ActiveWindow () |
int | operator== (const ActiveWindow &w) const |
virtual void | Paint () |
virtual void | Draw () |
virtual void | Show () |
virtual void | Hide () |
virtual void | MoveTo (const Rect &r) |
virtual void | UseLayout (const std::vector< DWORD > &min_x, const std::vector< DWORD > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y) |
virtual void | UseLayout (const std::vector< float > &min_x, const std::vector< float > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y) |
virtual void | UseLayout (int ncols, int nrows, int *min_x, int *min_y, float *weight_x, float *weight_y) |
virtual void | DoLayout () |
virtual int | OnMouseMove (int x, int y) |
virtual int | OnLButtonDown (int x, int y) |
virtual int | OnLButtonUp (int x, int y) |
virtual int | OnClick () |
virtual int | OnSelect () |
virtual int | OnRButtonDown (int x, int y) |
virtual int | OnRButtonUp (int x, int y) |
virtual int | OnMouseEnter (int x, int y) |
virtual int | OnMouseExit (int x, int y) |
virtual int | OnMouseWheel (int wheel) |
virtual int | OnKeyDown (int vk, int flags) |
virtual const char * | GetDescription () const |
virtual int | OnDragStart (int x, int y) |
virtual int | OnDragDrop (int x, int y, ActiveWindow *source) |
virtual ActiveWindow * | FindControl (int x, int y) |
virtual Rect | TargetRect () const |
virtual ActiveWindow * | GetCapture () |
virtual int | SetCapture () |
virtual int | ReleaseCapture () |
virtual void | SetFocus () |
virtual void | KillFocus () |
virtual bool | HasFocus () const |
void | SetEnabled (bool e=true) |
bool | IsEnabled () const |
bool | IsVisible () const |
DWORD | GetID () const |
void | SetStyle (DWORD s) |
DWORD | GetStyle () const |
void | SetText (const char *t) |
void | SetText (const Text &t) |
void | AddText (const char *t) |
void | AddText (const Text &t) |
const Text & | GetText () const |
void | SetAltText (const char *t) |
void | SetAltText (const Text &t) |
const Text & | GetAltText () const |
void | SetTexture (Bitmap *bmp) |
Bitmap * | GetTexture () |
void | SetMargins (const Insets &m) |
Insets & | GetMargins () |
void | SetTextInsets (const Insets &t) |
Insets & | GetTextInsets () |
List< ActiveWindow > & | GetChildren () |
void | SetCellInsets (const Insets &c) |
Insets & | GetCellInsets () |
void | SetCells (int cx, int cy, int cw=1, int ch=1) |
void | SetCells (const Rect &r) |
Rect & | GetCells () |
void | SetFixedWidth (int w) |
int | GetFixedWidth () const |
void | SetFixedHeight (int h) |
int | GetFixedHeight () const |
void | SetAlpha (double a) |
double | GetAlpha () 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 | SetTabStop (int n, int x) |
int | GetTabStop (int n) const |
void | DrawText (const char *txt, int count, Rect &txt_rect, DWORD flags) |
virtual void | RegisterClient (int EID, ActiveWindow *client, PFVAWE callback) |
virtual void | UnregisterClient (int EID, ActiveWindow *client) |
virtual void | ClientEvent (int EID, int x=0, int y=0) |
virtual ActiveWindow * | GetForm () |
virtual void | SetForm (ActiveWindow *f) |
virtual bool | IsFormActive () const |
virtual bool | IsTopMost () const |
virtual void | SetTopMost (bool t) |
virtual ActiveWindow * | FindChild (DWORD id) |
virtual ActiveWindow * | FindChild (int x, int y) |
Public Member Functions inherited from Window | |
Window (Screen *s, int ax, int ay, int aw, int ah) | |
virtual | ~Window () |
int | operator== (const Window &that) const |
Screen * | GetScreen () const |
const Rect & | GetRect () const |
int | X () const |
int | Y () const |
int | Width () const |
int | Height () const |
virtual bool | IsShown () const |
virtual bool | AddView (View *v) |
virtual bool | DelView (View *v) |
Rect | ClipRect (const Rect &r) |
bool | ClipLine (int &x1, int &y1, int &x2, int &y2) |
bool | ClipLine (double &x1, double &y1, double &x2, double &y2) |
void | DrawLine (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | DrawRect (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | DrawRect (const Rect &r, Color color, int blend=0) |
void | FillRect (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | FillRect (const Rect &r, Color color, int alpha=0) |
void | DrawBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0) |
void | FadeBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend) |
void | ClipBitmap (int x1, int y1, int x2, int y2, Bitmap *img, Color c, int blend, const Rect &clip) |
void | TileBitmap (int x1, int y1, int x2, int y2, Bitmap *img, int blend=0) |
void | DrawLines (int nPts, POINT *pts, Color color, int blend=0) |
void | DrawPoly (int nPts, POINT *pts, Color color, int blend=0) |
void | FillPoly (int nPts, POINT *pts, Color color, int blend=0) |
void | DrawEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | FillEllipse (int x1, int y1, int x2, int y2, Color color, int blend=0) |
void | SetFont (Font *f) |
Font * | GetFont () const |
void | Print (int x1, int y1, const char *fmt,...) |
Public Member Functions inherited from EventTarget | |
virtual | ~EventTarget () |
int | operator== (const EventTarget &t) const |
Static Public Member Functions | |
static const char * | TYPENAME () |
static void | SetSystemFont (Font *f) |
static void | SetSystemBackColor (Color c) |
static void | SetSystemForeColor (Color c) |
Protected Member Functions | |
virtual Color | ShadeColor (Color c, double shade) |
virtual void | AddChild (ActiveWindow *child) |
virtual void | DrawStyleRect (const Rect &r, int style) |
virtual void | DrawStyleRect (int x1, int y1, int x2, int y2, int style) |
virtual void | DrawTabbedText () |
virtual void | DrawTextureGrid () |
virtual void | CalcGrid () |
Protected Member Functions inherited from Window | |
virtual void | ScreenToWindow (int &x, int &y) |
virtual void | ScreenToWindow (Rect &r) |
Protected Attributes | |
DWORD | id |
DWORD | style |
DWORD | text_align |
bool | single_line |
bool | focus |
bool | enabled |
bool | hide_partial |
float | alpha |
Color | back_color |
Color | base_color |
Color | fore_color |
Text | text |
Text | alt_text |
Text | desc |
Bitmap * | texture |
Insets | margins |
Insets | text_insets |
Insets | cell_insets |
Rect | cells |
int | fixed_width |
int | fixed_height |
int | tab [10] |
ActiveWindow * | parent |
ActiveWindow * | form |
bool | transparent |
bool | topmost |
Layout * | layout |
List< ActiveWindow > | children |
List< AWMap > | clients |
AWEvent | event |
int | rows |
int | cols |
Poly * | polys |
VertexSet * | vset |
Material * | mtl |
Protected Attributes inherited from Window | |
Rect | rect |
Screen * | screen |
bool | shown |
Font * | font |
List< View > | view_list |
Static Protected Attributes | |
static Font * | sys_font = 0 |
static Color | sys_back_color = Color(128,128,128) |
static Color | sys_fore_color = Color( 0, 0, 0) |
Definition at line 117 of file ActiveWindow.h.
ActiveWindow::ActiveWindow | ( | Screen * | s, |
int | ax, | ||
int | ay, | ||
int | aw, | ||
int | ah, | ||
DWORD | id = 0 , |
||
DWORD | style = 0 , |
||
ActiveWindow * | parent = 0 |
||
) |
Definition at line 41 of file ActiveWindow.cpp.
|
virtual |
Definition at line 71 of file ActiveWindow.cpp.
|
protectedvirtual |
Definition at line 160 of file ActiveWindow.cpp.
void ActiveWindow::AddText | ( | const char * | t | ) |
Definition at line 692 of file ActiveWindow.cpp.
void ActiveWindow::AddText | ( | const Text & | t | ) |
Definition at line 700 of file ActiveWindow.cpp.
|
protectedvirtual |
Definition at line 285 of file ActiveWindow.cpp.
|
virtual |
Definition at line 798 of file ActiveWindow.cpp.
|
virtual |
Definition at line 169 of file ActiveWindow.cpp.
|
virtual |
Reimplemented in Button, ScrollWindow, ComboBox, ComboList, Slider, and ImageBox.
Definition at line 238 of file ActiveWindow.cpp.
|
protectedvirtual |
Definition at line 424 of file ActiveWindow.cpp.
|
protectedvirtual |
Definition at line 430 of file ActiveWindow.cpp.
|
protectedvirtual |
Reimplemented in ImageBox, RichTextBox, and EditBox.
Definition at line 512 of file ActiveWindow.cpp.
void ActiveWindow::DrawText | ( | const char * | txt, |
int | count, | ||
Rect & | txt_rect, | ||
DWORD | flags | ||
) |
Reimplemented from Window.
Definition at line 768 of file ActiveWindow.cpp.
|
protectedvirtual |
Definition at line 401 of file ActiveWindow.cpp.
|
virtual |
Definition at line 969 of file ActiveWindow.cpp.
|
virtual |
Definition at line 990 of file ActiveWindow.cpp.
|
inlinevirtual |
Reimplemented in FormWindow.
Definition at line 171 of file ActiveWindow.h.
|
inline |
Definition at line 220 of file ActiveWindow.h.
|
inline |
Definition at line 199 of file ActiveWindow.h.
|
inline |
Definition at line 222 of file ActiveWindow.h.
|
inline |
Definition at line 224 of file ActiveWindow.h.
|
virtual |
Definition at line 922 of file ActiveWindow.cpp.
|
inline |
Definition at line 210 of file ActiveWindow.h.
|
inline |
Definition at line 213 of file ActiveWindow.h.
|
inline |
Definition at line 208 of file ActiveWindow.h.
|
inlinevirtual |
Reimplemented from EventTarget.
Definition at line 165 of file ActiveWindow.h.
|
inline |
Definition at line 217 of file ActiveWindow.h.
|
inline |
Definition at line 215 of file ActiveWindow.h.
|
inline |
Definition at line 226 of file ActiveWindow.h.
|
inlinevirtual |
Definition at line 252 of file ActiveWindow.h.
|
inline |
Definition at line 234 of file ActiveWindow.h.
|
inline |
Definition at line 187 of file ActiveWindow.h.
|
inline |
Definition at line 204 of file ActiveWindow.h.
|
inline |
Definition at line 228 of file ActiveWindow.h.
|
inline |
Definition at line 189 of file ActiveWindow.h.
int ActiveWindow::GetTabStop | ( | int | n | ) | const |
Definition at line 589 of file ActiveWindow.cpp.
|
inline |
Definition at line 195 of file ActiveWindow.h.
|
inline |
Definition at line 230 of file ActiveWindow.h.
|
inline |
Definition at line 206 of file ActiveWindow.h.
|
inline |
Definition at line 202 of file ActiveWindow.h.
|
inline |
Definition at line 232 of file ActiveWindow.h.
|
inlinevirtual |
Reimplemented from EventTarget.
Definition at line 181 of file ActiveWindow.h.
|
virtual |
Reimplemented from Window.
Reimplemented in EngDlg, ComboList, CmpSceneDlg, and FltDlg.
Definition at line 112 of file ActiveWindow.cpp.
|
inlinevirtual |
Reimplemented from EventTarget.
Definition at line 184 of file ActiveWindow.h.
|
virtual |
Reimplemented from EventTarget.
Definition at line 958 of file ActiveWindow.cpp.
|
inlinevirtual |
Definition at line 255 of file ActiveWindow.h.
|
inlinevirtual |
Reimplemented from EventTarget.
Definition at line 185 of file ActiveWindow.h.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ComboList, and EditBox.
Definition at line 909 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from Window.
Reimplemented in ScrollWindow, ComboBox, and CmpLoadDlg.
Definition at line 138 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, ListBox, Button, ComboBox, ComboList, EditBox, RichTextBox, Slider, and ImageBox.
Definition at line 850 of file ActiveWindow.cpp.
|
virtual |
Reimplemented in ScrollWindow, and ListBox.
Definition at line 886 of file ActiveWindow.cpp.
|
virtual |
Reimplemented in ScrollWindow, and ListBox.
Definition at line 880 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, ListBox, EditBox, and RichTextBox.
Definition at line 874 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, Button, ListBox, ComboBox, ComboList, EditBox, RichTextBox, Slider, and ImageBox.
Definition at line 838 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, Button, ListBox, ComboBox, ComboList, EditBox, RichTextBox, Slider, and ImageBox.
Definition at line 844 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in Button, ComboBox, ComboList, and ImageBox.
Definition at line 814 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in Button, ComboBox, ComboList, and ImageBox.
Definition at line 820 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, Button, ListBox, ComboBox, ComboList, EditBox, RichTextBox, Slider, and ImageBox.
Definition at line 826 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in ScrollWindow, ListBox, and RichTextBox.
Definition at line 832 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 862 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 868 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 856 of file ActiveWindow.cpp.
|
inline |
Definition at line 127 of file ActiveWindow.h.
|
virtual |
Reimplemented from Window.
Reimplemented in ScrollWindow.
Definition at line 221 of file ActiveWindow.cpp.
|
virtual |
Definition at line 779 of file ActiveWindow.cpp.
|
virtual |
Definition at line 946 of file ActiveWindow.cpp.
void ActiveWindow::SetAlpha | ( | double | a | ) |
Definition at line 749 of file ActiveWindow.cpp.
|
inline |
Definition at line 197 of file ActiveWindow.h.
|
inline |
Definition at line 198 of file ActiveWindow.h.
|
inline |
Definition at line 221 of file ActiveWindow.h.
|
inline |
Definition at line 223 of file ActiveWindow.h.
|
virtual |
Definition at line 934 of file ActiveWindow.cpp.
void ActiveWindow::SetCellInsets | ( | const Insets & | c | ) |
Definition at line 728 of file ActiveWindow.cpp.
void ActiveWindow::SetCells | ( | int | cx, |
int | cy, | ||
int | cw = 1 , |
||
int | ch = 1 |
||
) |
Definition at line 734 of file ActiveWindow.cpp.
|
inline |
Definition at line 212 of file ActiveWindow.h.
|
inline |
Definition at line 183 of file ActiveWindow.h.
|
inline |
Definition at line 216 of file ActiveWindow.h.
|
inline |
Definition at line 214 of file ActiveWindow.h.
|
virtual |
Reimplemented from EventTarget.
Reimplemented in EditBox.
Definition at line 899 of file ActiveWindow.cpp.
|
inline |
Definition at line 225 of file ActiveWindow.h.
|
inlinevirtual |
Definition at line 253 of file ActiveWindow.h.
|
inline |
Definition at line 233 of file ActiveWindow.h.
void ActiveWindow::SetMargins | ( | const Insets & | m | ) |
Definition at line 715 of file ActiveWindow.cpp.
|
inline |
Definition at line 227 of file ActiveWindow.h.
|
inline |
Definition at line 188 of file ActiveWindow.h.
|
static |
Definition at line 36 of file ActiveWindow.cpp.
|
static |
Definition at line 35 of file ActiveWindow.cpp.
|
static |
Definition at line 37 of file ActiveWindow.cpp.
void ActiveWindow::SetTabStop | ( | int | n, |
int | x | ||
) |
Definition at line 582 of file ActiveWindow.cpp.
void ActiveWindow::SetText | ( | const char * | t | ) |
Reimplemented in RichTextBox.
Definition at line 600 of file ActiveWindow.cpp.
void ActiveWindow::SetText | ( | const Text & | t | ) |
Definition at line 645 of file ActiveWindow.cpp.
void ActiveWindow::SetTextAlign | ( | DWORD | a | ) |
Definition at line 708 of file ActiveWindow.cpp.
void ActiveWindow::SetTextInsets | ( | const Insets & | t | ) |
Definition at line 722 of file ActiveWindow.cpp.
|
inline |
Definition at line 201 of file ActiveWindow.h.
|
inlinevirtual |
Definition at line 256 of file ActiveWindow.h.
|
inline |
Definition at line 231 of file ActiveWindow.h.
Definition at line 229 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from Window.
Reimplemented in TacRefDlg, MsnWepDlg, MsnObjDlg, DebriefDlg, MsnEditNavDlg, MsnPkgDlg, NetLobbyDlg, MsnEditDlg, MsnNavDlg, EngDlg, MsnEventDlg, NetUnitDlg, MsnElemDlg, ComboList, CmdIntelDlg, CmdMissionsDlg, CmdTitleDlg, CmpFileDlg, CmpSelectDlg, MenuDlg, ModDlg, ModInfoDlg, MsnSelectDlg, NetClientDlg, CtlDlg, VidDlg, AwardDlg, CmpSceneDlg, ExitDlg, NetAddrDlg, NetPassDlg, NetServerDlg, PlayerDlg, AudDlg, AwardShowDlg, CmdOrdersDlg, CmdTheaterDlg, FirstTimeDlg, OptDlg, CmdForceDlg, FltDlg, CmdMsgDlg, CmpCompleteDlg, ConfirmDlg, JoyDlg, KeyDlg, and CmpLoadDlg.
Definition at line 88 of file ActiveWindow.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 892 of file ActiveWindow.cpp.
|
inlinestatic |
Reimplemented from EventTarget.
Reimplemented in ComboBox, ComboList, RichTextBox, EditBox, and Slider.
Definition at line 121 of file ActiveWindow.h.
|
virtual |
Definition at line 788 of file ActiveWindow.cpp.
|
virtual |
Definition at line 178 of file ActiveWindow.cpp.
|
virtual |
Definition at line 191 of file ActiveWindow.cpp.
|
virtual |
Definition at line 204 of file ActiveWindow.cpp.
|
protected |
Definition at line 277 of file ActiveWindow.h.
|
protected |
Definition at line 282 of file ActiveWindow.h.
|
protected |
Definition at line 278 of file ActiveWindow.h.
|
protected |
Definition at line 279 of file ActiveWindow.h.
|
protected |
Definition at line 287 of file ActiveWindow.h.
|
protected |
Definition at line 288 of file ActiveWindow.h.
|
protected |
Definition at line 299 of file ActiveWindow.h.
Reimplemented in EngDlg.
Definition at line 300 of file ActiveWindow.h.
|
protected |
Definition at line 304 of file ActiveWindow.h.
|
protected |
Definition at line 283 of file ActiveWindow.h.
|
protected |
Definition at line 275 of file ActiveWindow.h.
|
protected |
Reimplemented in MsnEventDlg.
Definition at line 301 of file ActiveWindow.h.
|
protected |
Definition at line 290 of file ActiveWindow.h.
|
protected |
Definition at line 289 of file ActiveWindow.h.
|
protected |
Definition at line 274 of file ActiveWindow.h.
|
protected |
Definition at line 280 of file ActiveWindow.h.
|
protected |
Definition at line 294 of file ActiveWindow.h.
|
protected |
Definition at line 276 of file ActiveWindow.h.
|
protected |
Definition at line 270 of file ActiveWindow.h.
|
protected |
Definition at line 298 of file ActiveWindow.h.
|
protected |
Definition at line 285 of file ActiveWindow.h.
|
protected |
Definition at line 307 of file ActiveWindow.h.
|
protected |
Definition at line 293 of file ActiveWindow.h.
|
protected |
Definition at line 305 of file ActiveWindow.h.
|
protected |
Definition at line 303 of file ActiveWindow.h.
|
protected |
Definition at line 273 of file ActiveWindow.h.
|
protected |
Definition at line 271 of file ActiveWindow.h.
Definition at line 310 of file ActiveWindow.h.
|
staticprotected |
Definition at line 309 of file ActiveWindow.h.
Definition at line 311 of file ActiveWindow.h.
|
protected |
Definition at line 291 of file ActiveWindow.h.
|
protected |
Definition at line 281 of file ActiveWindow.h.
|
protected |
Definition at line 272 of file ActiveWindow.h.
|
protected |
Definition at line 286 of file ActiveWindow.h.
|
protected |
Reimplemented in VidDlg.
Definition at line 284 of file ActiveWindow.h.
|
protected |
Definition at line 296 of file ActiveWindow.h.
|
protected |
Definition at line 295 of file ActiveWindow.h.
|
protected |
Definition at line 306 of file ActiveWindow.h.