#include <viewport.h>
Inheritance diagram for Viewport:
Public Methods | |
void | FastDraw (void) |
void | Done (void) |
Viewport (Viewport *parent, int x1, int y1, int x2, int y2) | |
Viewport (void) | |
void | SetColor (int c) |
void | SetBkColor (int c) |
void | SetFillStyle (int pat, int col) |
void | SetLineStyle (int st, unsigned pat, int thick) |
void | SetTextStyle (int fnt, int dir, int size) |
void | SetTextJustify (int hor, int ver) |
int | TextHeight (char *s) |
int | TextWidth (char *s) |
int | GetBkColor (void) |
int | GetColor (void) |
int | GetMaxColor (void) |
int | GetMaxX (void) |
int | GetMaxY (void) |
int | GetX (void) |
int | GetY (void) |
int | TransX (int x) |
int | TransY (int y) |
bool | InBounds (int x, int y) |
void | Bar (int x1, int y1, int x2, int y2) |
void | Circle (int x, int y, int r) |
void | Clear () |
void | FillEllipse (int x, int y, int xr, int yr) |
void | FloodFill (int x, int y, int border) |
void | GetImage (int x1, int y1, int x2, int y2, void far *img) |
unsigned | GetPixel (int x, int y) |
void | Line (int x1, int y1, int x2, int y2) |
void | LineRel (int dx, int dy) |
void | LineTo (int x, int y) |
void | MoveRel (int dx, int dy) |
void | MoveTo (int x, int y) |
void | OutText (char *s) |
void | OutTextXY (int x, int y, char *s) |
void | PutImage (int x, int y, void far *img, int op) |
void | PutPixel (int x, int y, int clr) |
void | Rectangle (int x1, int y1, int x2, int y2) |
Protected Methods | |
void | Install (void) |
void | SwitchTo (void) |
void | DoDraw (void) |
void | DoneDraw (void) |
Protected Attributes | |
ViewSettings | SView |
ColorSettings | SColor |
FillSettings | SFill |
LineSettings | SLine |
TextSettings | SText |
Position | SPos |
Viewport * | Parent |
Static Protected Attributes | |
Viewport * | Context = NULL |
int | Fast = 0 |
|
Definition at line 23 of file viewport.c. References Install(), Parent, SView, ViewSettings::X1, ViewSettings::X2, ViewSettings::Y1, and ViewSettings::Y2.
|
|
Definition at line 37 of file viewport.c. References Install(), and Parent.
|
|
Definition at line 158 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by CheckBox::Draw(), PushButton::Draw(), CheckBox::empty_box(), Window::Erase(), CheckBox::Erase(), and PushButton::Erase().
|
|
Definition at line 160 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by Nodes::animate_frame(), and CheckBox::animate_frame().
|
|
Definition at line 56 of file viewport.c. References ColorSettings::BG, Context, DoDraw(), DoneDraw(), SColor, SPos, SView, SwitchTo(), Position::X, ViewSettings::X2, Position::Y, and ViewSettings::Y2. Referenced by PlayerWindow::Clear(), Window::Draw(), TextWin::Draw(), PlayerWindow::Draw(), MapWindow::Draw(), KeyWindow::Draw(), InfoWindow::Draw(), Window::DrawTitle(), UserInterface::Intro(), and UserInterface::UFWOOM().
|
|
Definition at line 112 of file viewport.h. References Fast. Referenced by Bar(), Circle(), Clear(), FillEllipse(), FloodFill(), Line(), LineRel(), LineTo(), OutText(), OutTextXY(), PutImage(), PutPixel(), and Rectangle().
00112 { if (!Fast) Mouse.Hide (); } |
|
Definition at line 117 of file viewport.h. References Fast. Referenced by Nodes::animate_frame(), CheckBox::animate_frame(), PushButton::depress_button(), Group::disable_proc(), Window::Draw(), TextWin::Draw(), PlayerWindow::Draw(), Nodes::Draw(), MapWindow::Draw(), KeyWindow::Draw(), InfoWindow::Draw(), Group::Draw(), CheckBox::Draw(), PushButton::Draw(), Nodes::empty_box(), CheckBox::empty_box(), Group::enable_proc(), Group::Erase(), CheckBox::Erase(), Nodes::fill_box(), CheckBox::fill_box(), and PushButton::redraw().
|
|
Definition at line 113 of file viewport.h. References Fast. Referenced by Bar(), Circle(), Clear(), FillEllipse(), FloodFill(), Line(), LineRel(), LineTo(), OutText(), OutTextXY(), PutImage(), PutPixel(), and Rectangle().
00113 { if (!Fast) Mouse.Show (); } |
|
Definition at line 116 of file viewport.h. References Fast. Referenced by Nodes::animate_frame(), CheckBox::animate_frame(), PushButton::depress_button(), Group::disable_proc(), Window::Draw(), TextWin::Draw(), PlayerWindow::Draw(), Nodes::Draw(), MapWindow::Draw(), KeyWindow::Draw(), InfoWindow::Draw(), Group::Draw(), CheckBox::Draw(), PushButton::Draw(), Nodes::empty_box(), CheckBox::empty_box(), Group::enable_proc(), Group::Erase(), CheckBox::Erase(), Nodes::fill_box(), CheckBox::fill_box(), and PushButton::redraw().
|
|
Definition at line 163 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by Nodes::Draw(), CheckBox::Draw(), Nodes::empty_box(), CheckBox::empty_box(), Nodes::fill_box(), and CheckBox::fill_box().
|
|
Definition at line 165 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo().
|
|
Definition at line 145 of file viewport.h. References ColorSettings::BG. Referenced by Window::Erase(), CheckBox::Erase(), PushButton::Erase(), Nodes::Init(), and CheckBox::Init().
|
|
Definition at line 146 of file viewport.h. References ColorSettings::FG.
|
|
Definition at line 167 of file viewport.h. References SwitchTo(). Referenced by PushButton::name_button(), and PopUpWin::PrepScreen().
00168 { SwitchTo (); getimage (x1, y1, x2, y2, img); } |
|
Definition at line 147 of file viewport.h.
00147 { return Screen.GetMaxColor (); } |
|
Definition at line 148 of file viewport.h. References ViewSettings::X1, and ViewSettings::X2. Referenced by UserInterface::AboutButton(), TextWin::Draw(), InfoWindow::Draw(), Window::DrawTitle(), InBounds(), CPanelWindow::Init(), UserInterface::Intro(), MessageWin(), PushButton::name_button(), MapWindow::Scale(), UserInterface::ShowSpyMoves(), UserInterface::TransPop(), and UserInterface::UFWOOM().
|
|
Definition at line 149 of file viewport.h. References ViewSettings::Y1, and ViewSettings::Y2. Referenced by UserInterface::AboutButton(), InBounds(), UserInterface::Intro(), MessageWin(), PushButton::name_button(), MapWindow::Scale(), UserInterface::ShowSpyMoves(), UserInterface::TransPop(), and UserInterface::UFWOOM().
|
|
Definition at line 169 of file viewport.h. References SwitchTo().
00170 { SwitchTo (); return getpixel (x, y); } |
|
Definition at line 150 of file viewport.h. References Position::X.
|
|
Definition at line 151 of file viewport.h. References Position::Y.
|
|
Definition at line 85 of file viewport.c. References GetMaxX(), and GetMaxY().
|
|
Definition at line 44 of file viewport.c. References Context, Position::Install(), TextSettings::Install(), LineSettings::Install(), FillSettings::Install(), ColorSettings::Install(), ViewSettings::Install(), SColor, SFill, SLine, SPos, SText, and SView. Referenced by SwitchTo(), and Viewport().
|
|
Definition at line 171 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by MapWindow::ConnectNode(), PushButton::depress_button(), CheckBox::draw_check(), PushButton::draw_shadows(), and Window::DrawTitle().
|
|
Definition at line 173 of file viewport.h. References DoDraw(), DoneDraw(), Position::Save(), and SwitchTo().
|
|
Definition at line 175 of file viewport.h. References DoDraw(), DoneDraw(), Position::Save(), and SwitchTo().
|
|
Definition at line 177 of file viewport.h. References Position::Save(), and SwitchTo(). Referenced by TextWin::Draw().
|
|
Definition at line 179 of file viewport.h. References Position::Save(), and SwitchTo(). Referenced by TextWin::Draw().
|
|
Definition at line 181 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by TextWin::Draw().
|
|
Definition at line 183 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by UserInterface::AboutButton(), InfoWindow::Draw(), PlayerWindow::DrawInfo(), Window::DrawTitle(), UserInterface::Intro(), CheckBox::name_button(), PushButton::name_button(), UserInterface::ShowSpyMoves(), and UserInterface::UFWOOM().
|
|
Definition at line 185 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by PopUpWin::Erase(), and PushButton::name_button().
|
|
Definition at line 187 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo().
|
|
Definition at line 189 of file viewport.h. References DoDraw(), DoneDraw(), and SwitchTo(). Referenced by CheckBox::animate_frame(), CheckBox::Draw(), PushButton::draw_frame(), Window::DrawBorder(), and PushButton::name_button().
|
|
Definition at line 126 of file viewport.h. References ColorSettings::BG. Referenced by Window::Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), UserInterface::Intro(), and UserInterface::UFWOOM().
|
|
Definition at line 125 of file viewport.h. References ColorSettings::FG. Referenced by Nodes::animate_frame(), CheckBox::animate_frame(), MapWindow::ConnectNode(), PushButton::depress_button(), TextWin::Draw(), Nodes::Draw(), InfoWindow::Draw(), CheckBox::Draw(), PushButton::draw_frame(), PushButton::draw_shadows(), Window::DrawBorder(), PlayerWindow::DrawInfo(), Window::DrawTitle(), Nodes::empty_box(), CheckBox::empty_box(), Nodes::fill_box(), CheckBox::fill_box(), Window::Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), UserInterface::Intro(), CheckBox::name_button(), PushButton::name_button(), UserInterface::ShowSpyMoves(), and UserInterface::UFWOOM().
|
|
Definition at line 127 of file viewport.h. References FillSettings::Color, and FillSettings::Pattern. Referenced by Nodes::Draw(), CheckBox::Draw(), PushButton::Draw(), Nodes::empty_box(), CheckBox::empty_box(), Window::Erase(), CheckBox::Erase(), PushButton::Erase(), Nodes::fill_box(), and CheckBox::fill_box().
|
|
Definition at line 129 of file viewport.h. References LineSettings::Pattern, LineSettings::Style, and LineSettings::Thickness. Referenced by Nodes::animate_frame(), CheckBox::animate_frame(), MapWindow::ConnectNode(), CheckBox::draw_check(), PushButton::draw_frame(), and Window::DrawBorder().
|
|
Definition at line 135 of file viewport.h. References TextSettings::HJust, and TextSettings::VJust. Referenced by UserInterface::AboutButton(), TextWin::Draw(), PlayerWindow::DrawInfo(), Window::Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), UserInterface::Intro(), and PushButton::name_button().
|
|
Definition at line 132 of file viewport.h. References TextSettings::CharSize, TextSettings::Direction, and TextSettings::Font. Referenced by UserInterface::AboutButton(), TextWin::CalcDim(), TextWin::Draw(), InfoWindow::Draw(), PlayerWindow::DrawInfo(), Window::Init(), MapWindow::Init(), KeyWindow::Init(), InfoWindow::Init(), CPanelWindow::Init(), UserInterface::Intro(), CheckBox::name_button(), PushButton::name_button(), CheckBox::set_constants(), PushButton::set_constants(), and UserInterface::UFWOOM().
|
|
Definition at line 109 of file viewport.h. References Install(). Referenced by Bar(), Circle(), Clear(), FillEllipse(), FloodFill(), GetImage(), GetPixel(), Line(), LineRel(), LineTo(), MoveRel(), MoveTo(), OutText(), OutTextXY(), PutImage(), PutPixel(), Rectangle(), TextHeight(), and TextWidth().
|
|
Definition at line 141 of file viewport.h. References SwitchTo(). Referenced by TextWin::CalcDim(), CheckBox::set_constants(), and PushButton::set_constants().
00142 { SwitchTo (); return textheight (s); } |
|
Definition at line 143 of file viewport.h. References SwitchTo(). Referenced by TextWin::CalcDim(), InfoWindow::Draw(), CheckBox::set_constants(), and PushButton::set_constants().
00144 { SwitchTo (); return textwidth (s); } |
|
Definition at line 68 of file viewport.c. References Parent, SView, and ViewSettings::X1. Referenced by Display::Dispatch().
|
|
Definition at line 76 of file viewport.c. References Parent, SView, and ViewSettings::Y1. Referenced by Display::Dispatch().
|
|
Definition at line 15 of file viewport.c. |
|
Definition at line 16 of file viewport.c. |
|
Definition at line 105 of file viewport.h. |
|
Definition at line 100 of file viewport.h. |
|
Definition at line 101 of file viewport.h. Referenced by Install(). |
|
Definition at line 102 of file viewport.h. Referenced by Install(). |
|
Definition at line 104 of file viewport.h. |
|
Definition at line 103 of file viewport.h. Referenced by Install(). |
|
Definition at line 99 of file viewport.h. Referenced by Clear(), Install(), TransX(), TransY(), and Viewport(). |