Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Window Class Reference

#include <ROlib.h>

Collaboration diagram for Window:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Window (const int *WDesc, const char *Title)
 ~Window (void)
int MyHandle (void)
void GetWorkArea (int *Dest)
void RedrawAWindow (int *Block, uint8 *Bitmap, C64Display *Disp)
RO_WindowDescriptor (void)
RO_IconGetIcon (unsigned int number)
void SetIconState (unsigned int number, unsigned int eor, unsigned int clear)
void GetIconState (unsigned int number, int *Block)
void WriteIconText (unsigned int number, const char *text)
void WriteIconTextU (unsigned int number, const char *text)
void WriteIconNumber (unsigned int number, int value)
void WriteIconNumberU (unsigned int number, int value)
char * ReadIconText (unsigned int number)
int ReadIconNumber (unsigned int number)
void ForceIconRedraw (unsigned int number)
void UpdateIcon (unsigned int number)
void WriteTitle (const char *title)
char * ReadTitle (void)
void UpdateTitle (void)
bool HaveInput (void)
bool OpenStatus (void)
bool OpenStatus (int *Block)
void open (void)
void open (int *Block)
void close (void)
void forceredraw (int minx, int miny, int maxx, int maxy)
void update (uint8 *Bitmap, C64Display *Disp)
void update (int *Block, uint8 *Bitmap, C64Display *Disp)
void redraw (int *Block, uint8 *Bitmap, C64Display *Disp)
void extent (int minx, int miny, int maxx, int maxy)
void getstate (void)
void getstate (int *dest)

Private Attributes

RO_Windowwind
bool isopen

Constructor & Destructor Documentation

Window::Window const int *  WDesc,
const char *  Title
 

Definition at line 88 of file main_Acorn.i.

References RO_Window::dat, RO_Window::Handle, IFlg_Indir, WIdata::ind, isopen, strcpy, strncpy, TASKNAME, RO_Window::tflags, WIdatI::tit, RO_Window::vminx, Wimp_CreateWindow(), Wimp_ReportError(), and wind.

Window::~Window void   ) 
 

Definition at line 114 of file main_Acorn.i.

References Wimp_DeleteWindow(), and wind.


Member Function Documentation

void Window::close void   ) 
 

Definition at line 139 of file main_Acorn.i.

References isopen, Wimp_CloseWindow(), and wind.

RO_Window * Window::Descriptor void   ) 
 

Definition at line 403 of file main_Acorn.i.

References wind.

void Window::extent int  minx,
int  miny,
int  maxx,
int  maxy
 

Definition at line 194 of file main_Acorn.i.

References extent(), RO_Window::Handle, Wimp_SetExtent(), wind, RO_Window::wmaxx, RO_Window::wmaxy, RO_Window::wminx, and RO_Window::wminy.

Referenced by extent().

void Window::ForceIconRedraw unsigned int  number  ) 
 

Definition at line 407 of file main_Acorn.i.

References forceredraw(), GetIcon(), RO_Window::icon_no, RO_Icon::maxx, RO_Icon::maxy, RO_Icon::minx, RO_Icon::miny, and wind.

Referenced by WriteIconNumber(), and WriteIconText().

void Window::forceredraw int  minx,
int  miny,
int  maxx,
int  maxy
 

Definition at line 142 of file main_Acorn.i.

References RO_Window::Handle, Wimp_ForceRedraw(), and wind.

Referenced by ForceIconRedraw().

RO_Icon * Window::GetIcon unsigned int  number  ) 
 

Definition at line 245 of file main_Acorn.i.

References RO_Window::icon_no, RO_ICON_WORDS, RO_WINDOW_WORDS, and wind.

Referenced by ForceIconRedraw(), ReadIconNumber(), ReadIconText(), UpdateIcon(), WriteIconNumber(), WriteIconNumberU(), WriteIconText(), and WriteIconTextU().

void Window::GetIconState unsigned int  number,
int *  Block
 

Definition at line 261 of file main_Acorn.i.

References RO_Window::Handle, Wimp_GetIconState(), and wind.

void Window::getstate int *  dest  ) 
 

Definition at line 209 of file main_Acorn.i.

References RO_Window::Handle, Wimp_GetWindowState(), and wind.

void Window::getstate void   ) 
 

Definition at line 206 of file main_Acorn.i.

References Wimp_GetWindowState(), and wind.

Referenced by OpenStatus(), and UpdateTitle().

void Window::GetWorkArea int *  Dest  ) 
 

Definition at line 126 of file main_Acorn.i.

References wind, RO_Window::wmaxx, RO_Window::wmaxy, RO_Window::wminx, and RO_Window::wminy.

Referenced by update().

bool Window::HaveInput void   ) 
 

Definition at line 269 of file main_Acorn.i.

References RO_Window::Handle, RO_Caret::WHandle, Wimp_GetCaretPosition(), and wind.

int Window::MyHandle void   ) 
 

Definition at line 120 of file main_Acorn.i.

References RO_Window::Handle, and wind.

void Window::open int *  Block  ) 
 

Definition at line 136 of file main_Acorn.i.

References isopen, and Wimp_OpenWindow().

void Window::open void   ) 
 

Definition at line 133 of file main_Acorn.i.

References isopen, Wimp_OpenWindow(), and wind.

bool Window::OpenStatus int *  Block  ) 
 

Definition at line 450 of file main_Acorn.i.

References getstate().

bool Window::OpenStatus void   ) 
 

Definition at line 442 of file main_Acorn.i.

References getstate(), RO_Window::wflags, and wind.

int Window::ReadIconNumber unsigned int  number  ) 
 

Definition at line 358 of file main_Acorn.i.

References atoi, RO_Icon::dat, GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, and WIdatI::tit.

char * Window::ReadIconText unsigned int  number  ) 
 

Definition at line 344 of file main_Acorn.i.

References RO_Icon::dat, GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, and WIdatI::tit.

char * Window::ReadTitle void   ) 
 

Definition at line 384 of file main_Acorn.i.

References RO_Window::dat, IFlg_Indir, IFlg_Text, WIdata::ind, RO_Window::tflags, WIdatI::tit, and wind.

void Window::redraw int *  Block,
uint8 Bitmap,
C64Display Disp
 

Definition at line 148 of file main_Acorn.i.

References RedrawAWindow(), Wimp_GetRectangle(), and Wimp_RedrawWindow().

void Window::RedrawAWindow int *  Block,
uint8 Bitmap,
C64Display Disp
 

Definition at line 218 of file main_Acorn.i.

References graph_env::dimx, graph_env::dimy, DISPLAY_Y, PlotZoom1(), PlotZoom2(), RedrawB_CMinX, RedrawB_ScrollX, RedrawB_ScrollY, RedrawB_VMaxY, RedrawB_VMinX, C64Display::TheC64, graph_env::x, and graph_env::y.

Referenced by redraw(), and update().

void Window::SetIconState unsigned int  number,
unsigned int  eor,
unsigned int  clear
 

Definition at line 252 of file main_Acorn.i.

References RO_Window::Handle, Wimp_SetIconState(), and wind.

void Window::update int *  Block,
uint8 Bitmap,
C64Display Disp
 

Definition at line 163 of file main_Acorn.i.

References RO_Window::Handle, RedrawAWindow(), Wimp_GetRectangle(), Wimp_UpdateWindow(), and wind.

void Window::update uint8 Bitmap,
C64Display Disp
 

Definition at line 178 of file main_Acorn.i.

References GetWorkArea(), RO_Window::Handle, RedrawAWindow(), Wimp_GetRectangle(), Wimp_UpdateWindow(), and wind.

void Window::UpdateIcon unsigned int  number  ) 
 

Definition at line 420 of file main_Acorn.i.

References GetIcon(), RO_Window::Handle, RO_Window::icon_no, RO_Icon::maxx, RO_Icon::maxy, RO_Icon::minx, RO_Icon::miny, RedrawB_Handle, RedrawB_VMaxX, RedrawB_VMaxY, RedrawB_VMinX, RedrawB_VMinY, Wimp_GetRectangle(), Wimp_UpdateWindow(), and wind.

Referenced by WriteIconNumberU(), and WriteIconTextU().

void Window::UpdateTitle void   ) 
 

Definition at line 395 of file main_Acorn.i.

References getstate(), TitleBarHeight, RO_Window::vmaxx, RO_Window::vmaxy, RO_Window::vminx, Wimp_ForceRedraw(), and wind.

Referenced by WriteTitle().

void Window::WriteIconNumber unsigned int  number,
int  value
 

Definition at line 312 of file main_Acorn.i.

References ConvertInteger4(), RO_Icon::dat, ForceIconRedraw(), GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, WIdatI::len, and WIdatI::tit.

void Window::WriteIconNumberU unsigned int  number,
int  value
 

Definition at line 328 of file main_Acorn.i.

References ConvertInteger4(), RO_Icon::dat, GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, WIdatI::len, WIdatI::tit, and UpdateIcon().

void Window::WriteIconText unsigned int  number,
const char *  text
 

Definition at line 279 of file main_Acorn.i.

References RO_Icon::dat, ForceIconRedraw(), GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, WIdatI::len, strncpy, and WIdatI::tit.

void Window::WriteIconTextU unsigned int  number,
const char *  text
 

Definition at line 296 of file main_Acorn.i.

References RO_Icon::dat, GetIcon(), RO_Icon::iflags, IFlg_Indir, WIdata::ind, WIdatI::len, strncpy, WIdatI::tit, and UpdateIcon().

void Window::WriteTitle const char *  title  ) 
 

Definition at line 373 of file main_Acorn.i.

References RO_Window::dat, IFlg_Indir, IFlg_Text, WIdata::ind, strcpy, RO_Window::tflags, WIdatI::tit, UpdateTitle(), and wind.


Member Data Documentation

bool Window::isopen [private]
 

Definition at line 214 of file ROlib.h.

Referenced by close(), open(), and Window().

RO_Window* Window::wind [private]
 

Definition at line 213 of file ROlib.h.

Referenced by close(), Descriptor(), extent(), ForceIconRedraw(), forceredraw(), GetIcon(), GetIconState(), getstate(), GetWorkArea(), HaveInput(), MyHandle(), open(), OpenStatus(), ReadTitle(), SetIconState(), update(), UpdateIcon(), UpdateTitle(), Window(), WriteTitle(), and ~Window().


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:13:05 2005 for E32frodo by doxygen 1.3.3