Starshatter_Open
Open source Starshatter engine
|
#include <Window.h>
Public Member Functions | |
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 void | Paint () |
virtual void | Show () |
virtual void | Hide () |
virtual bool | IsShown () const |
virtual void | MoveTo (const Rect &r) |
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,...) |
void | DrawText (const char *txt, int count, Rect &txt_rect, DWORD flags) |
Static Public Member Functions | |
static const char * | TYPENAME () |
Protected Member Functions | |
virtual void | ScreenToWindow (int &x, int &y) |
virtual void | ScreenToWindow (Rect &r) |
Protected Attributes | |
Rect | rect |
Screen * | screen |
bool | shown |
Font * | font |
List< View > | view_list |
Friends | |
class | Screen |
Window::Window | ( | Screen * | s, |
int | ax, | ||
int | ay, | ||
int | aw, | ||
int | ah | ||
) |
Definition at line 30 of file Window.cpp.
|
virtual |
Definition at line 36 of file Window.cpp.
|
virtual |
Definition at line 44 of file Window.cpp.
void Window::ClipBitmap | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Bitmap * | img, | ||
Color | c, | ||
int | blend, | ||
const Rect & | clip | ||
) |
Definition at line 477 of file Window.cpp.
bool Window::ClipLine | ( | int & | x1, |
int & | y1, | ||
int & | x2, | ||
int & | y2 | ||
) |
Definition at line 125 of file Window.cpp.
bool Window::ClipLine | ( | double & | x1, |
double & | y1, | ||
double & | x2, | ||
double & | y2 | ||
) |
Definition at line 184 of file Window.cpp.
Definition at line 96 of file Window.cpp.
|
virtual |
Definition at line 55 of file Window.cpp.
void Window::DrawBitmap | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Bitmap * | img, | ||
int | blend = 0 |
||
) |
Definition at line 457 of file Window.cpp.
void Window::DrawEllipse | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 655 of file Window.cpp.
void Window::DrawLine | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 243 of file Window.cpp.
void Window::DrawLines | ( | int | nPts, |
POINT * | pts, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 372 of file Window.cpp.
void Window::DrawPoly | ( | int | nPts, |
POINT * | pts, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 395 of file Window.cpp.
void Window::DrawRect | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 263 of file Window.cpp.
Definition at line 300 of file Window.cpp.
void Window::DrawText | ( | const char * | txt, |
int | count, | ||
Rect & | txt_rect, | ||
DWORD | flags | ||
) |
Reimplemented in ActiveWindow.
Definition at line 890 of file Window.cpp.
Definition at line 467 of file Window.cpp.
void Window::FillEllipse | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 791 of file Window.cpp.
void Window::FillPoly | ( | int | nPts, |
POINT * | pts, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 423 of file Window.cpp.
void Window::FillRect | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Color | color, | ||
int | blend = 0 |
||
) |
Definition at line 308 of file Window.cpp.
Definition at line 364 of file Window.cpp.
|
inlinevirtual |
Reimplemented in ActiveWindow, EngDlg, ComboList, CmpSceneDlg, and FltDlg.
|
virtual |
Reimplemented in ActiveWindow, ScrollWindow, ComboBox, and CmpLoadDlg.
Definition at line 63 of file Window.cpp.
|
virtual |
Reimplemented in ActiveWindow, and ScrollWindow.
Definition at line 81 of file Window.cpp.
void Window::Print | ( | int | x1, |
int | y1, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 876 of file Window.cpp.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Reimplemented in ActiveWindow, 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.
void Window::TileBitmap | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
Bitmap * | img, | ||
int | blend = 0 |
||
) |
Definition at line 593 of file Window.cpp.
|
inlinestatic |
Reimplemented in ActiveWindow, ComboBox, ComboList, RichTextBox, EditBox, and Slider.