#include <window.h>
Inheritance diagram for Window:
Public Methods | |
Window (int dx, int dy, int bc, int bkc) | |
Window (int dx, int dy, int bc, int bkc, char *t, int tc) | |
virtual | ~Window () |
int | GetXDim (void) |
int | GetYDim (void) |
Display & | Client (void) |
void | CalcBorder (void) |
void | CalcTitle (void) |
virtual void | PrepScreen (void) |
void | DrawBorder (void) |
void | DrawTitle (void) |
virtual void | Init (Display *d, int x, int y) |
virtual void | Draw () |
virtual void | Erase () |
virtual Message | Dispatch (Message &msg) |
Protected Methods | |
Window () | |
Protected Attributes | |
int | XDim |
int | YDim |
int | CliX1 |
int | CliY1 |
int | CliX2 |
int | CliY2 |
int | BorderColor |
int | BkColor |
Display * | ClientD |
int | TitleColor |
int | TX1 |
int | TY1 |
int | TX2 |
int | TY2 |
char * | Title |
Display * | TitleD |
|
Definition at line 24 of file window.c. References False.
|
|
Definition at line 36 of file window.c. References BkColor, BorderColor, ClientD, CliX1, CliX2, CliY1, CliY2, ScrnObj::Drawn, False, Title, TitleColor, TitleD, TX1, TX2, TY1, TY2, XDim, and YDim.
|
|
Definition at line 49 of file window.c. References BkColor, BorderColor, ClientD, CliX1, CliX2, CliY1, CliY2, ScrnObj::Drawn, False, Title, TitleColor, TitleD, TX1, TX2, TY1, TY2, XDim, and YDim.
00050 { 00051 XDim = dx; YDim = dy; 00052 CliX1 = CliY1 = CliX2 = CliY2 = 0; 00053 TX1 = TY1 = TX2 = TY2 = 0; 00054 BorderColor = bc; 00055 BkColor = bkc; 00056 TitleColor = tc; 00057 Title = new char [strlen (t)+1]; 00058 assert (Title != 0); 00059 strcpy (Title, t); 00060 ClientD = TitleD = NULL; 00061 Drawn = False; 00062 } |
|
Definition at line 69 of file window.c. References ClientD, Erase(), Title, and TitleD.
|
|
Definition at line 82 of file window.c. References BorderWidth, CliX1, CliX2, CliY1, CliY2, ScrnObj::X, XDim, ScrnObj::Y, and YDim. Referenced by Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), and CPanelWindow::Init().
00083 { 00084 CliX1 += X + BorderWidth+1; 00085 CliY1 += Y + BorderWidth+1; 00086 CliX2 += X + XDim - BorderWidth - 1; 00087 CliY2 += Y + YDim - BorderWidth - 1; 00088 } |
|
Definition at line 90 of file window.c. References CliX1, CliX2, CliY1, TitleWidth, TX1, TX2, TY1, and TY2. Referenced by Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), and CPanelWindow::Init().
|
|
Definition at line 55 of file window.h. Referenced by UserInterface::AboutButton(), PlayerWindow::Clear(), UserInterface::Intro(), MessageWin(), UserInterface::ShowSpyMoves(), UserInterface::TransPop(), and UserInterface::UFWOOM().
00055 { return (*ClientD); } |
|
Reimplemented from ScrnObj. Reimplemented in CPanelWindow, InfoWindow, KeyWindow, and PlayerWindow. Definition at line 190 of file window.c. References ClientD, and Display::Dispatch(). Referenced by UserInterface::TransPop().
|
|
Implements ScrnObj. Reimplemented in InfoWindow, KeyWindow, MapWindow, PlayerWindow, and TextWin. Definition at line 151 of file window.c. References Viewport::Clear(), ClientD, ScrnObj::Disp, Viewport::Done(), Display::Draw(), DrawBorder(), ScrnObj::Drawn, DrawTitle(), Viewport::FastDraw(), PrepScreen(), and True. Referenced by UserInterface::ShowSpyMoves(), and UserInterface::TransPop().
|
|
Definition at line 130 of file window.c. References BorderColor, BorderWidth, ScrnObj::Disp, Viewport::Rectangle(), Viewport::SetColor(), Viewport::SetLineStyle(), ScrnObj::X, XDim, ScrnObj::Y, and YDim. Referenced by Draw(), TextWin::Draw(), PlayerWindow::Draw(), MapWindow::Draw(), KeyWindow::Draw(), and InfoWindow::Draw().
00131 { 00132 Disp->SetLineStyle (SOLID_LINE, 1, 1); 00133 Disp->SetColor (BorderColor); 00134 for (int i=0; i<BorderWidth; i++) 00135 Disp->Rectangle (X+i, Y+i, X+XDim-i, Y+YDim-i); 00136 Disp->SetColor (BLACK); 00137 Disp->Rectangle (X+BorderWidth, Y+BorderWidth, 00138 X+XDim-BorderWidth, Y+YDim-BorderWidth); 00139 } |
|
Definition at line 142 of file window.c. References Viewport::Clear(), ScrnObj::Disp, Viewport::GetMaxX(), Viewport::Line(), Viewport::OutTextXY(), Viewport::SetColor(), Title, TitleD, TX1, TX2, and TY2. Referenced by Draw(), TextWin::Draw(), PlayerWindow::Draw(), MapWindow::Draw(), KeyWindow::Draw(), and InfoWindow::Draw().
|
|
Reimplemented from ScrnObj. Reimplemented in PopUpWin. Definition at line 173 of file window.c. References Viewport::Bar(), ClientD, ScrnObj::Disp, ScrnObj::Drawn, Display::Erase(), False, Viewport::GetBkColor(), Viewport::SetFillStyle(), ScrnObj::X, XDim, ScrnObj::Y, and YDim. Referenced by ~Window().
|
|
Reimplemented from ScrnObj. Definition at line 52 of file window.h. References XDim. Referenced by CPanelWindow::Init(), and MessageWin().
00052 { return XDim; } |
|
Reimplemented from ScrnObj. Definition at line 53 of file window.h. References YDim. Referenced by CPanelWindow::Init(), and MessageWin().
00053 { return YDim; } |
|
|
Reimplemented in PopUpWin. Definition at line 60 of file window.h. Referenced by Draw(), PlayerWindow::Draw(), MapWindow::Draw(), KeyWindow::Draw(), and InfoWindow::Draw().
00060 { } |
|
Definition at line 38 of file window.h. Referenced by CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), TextWin::TextWin(), and Window(). |
|
Definition at line 38 of file window.h. Referenced by CPanelWindow::CPanelWindow(), DrawBorder(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), TextWin::TextWin(), and Window(). |
|
Definition at line 39 of file window.h. Referenced by MapWindow::AllocNodes(), MapWindow::ConnectNode(), CPanelWindow::CPanelWindow(), Dispatch(), CPanelWindow::Dispatch(), Draw(), TextWin::Draw(), PlayerWindow::Draw(), MapWindow::Draw(), KeyWindow::Draw(), InfoWindow::Draw(), PlayerWindow::DrawInfo(), Erase(), PopUpWin::Erase(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), MapWindow::Scale(), Window(), and ~Window(). |
|
Definition at line 37 of file window.h. Referenced by CalcBorder(), CalcTitle(), CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 37 of file window.h. Referenced by CalcBorder(), CalcTitle(), CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 37 of file window.h. Referenced by CalcBorder(), CalcTitle(), CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 37 of file window.h. Referenced by CalcBorder(), CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 43 of file window.h. Referenced by CPanelWindow::CPanelWindow(), DrawTitle(), InfoWindow::InfoWindow(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), TextWin::TextWin(), Window(), and ~Window(). |
|
Definition at line 41 of file window.h. Referenced by CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), TextWin::TextWin(), and Window(). |
|
Definition at line 44 of file window.h. Referenced by CPanelWindow::CPanelWindow(), DrawTitle(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), Window(), and ~Window(). |
|
Definition at line 42 of file window.h. Referenced by CalcTitle(), CPanelWindow::CPanelWindow(), DrawTitle(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 42 of file window.h. Referenced by CalcTitle(), CPanelWindow::CPanelWindow(), DrawTitle(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 42 of file window.h. Referenced by CalcTitle(), CPanelWindow::CPanelWindow(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 42 of file window.h. Referenced by CalcTitle(), CPanelWindow::CPanelWindow(), DrawTitle(), InfoWindow::InfoWindow(), Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), and Window(). |
|
Definition at line 36 of file window.h. Referenced by CalcBorder(), TextWin::CalcDim(), CPanelWindow::CPanelWindow(), DrawBorder(), Erase(), GetXDim(), InfoWindow::InfoWindow(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), PopUpWin::PrepScreen(), and Window(). |
|
Definition at line 36 of file window.h. Referenced by CalcBorder(), TextWin::CalcDim(), CPanelWindow::CPanelWindow(), DrawBorder(), Erase(), GetYDim(), InfoWindow::InfoWindow(), KeyWindow::KeyWindow(), MapWindow::MapWindow(), PlayerWindow::PlayerWindow(), PopUpWin::PrepScreen(), and Window(). |