Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ScrollableView Class Reference

#include <scrollableview.h>

Inheritance diagram for ScrollableView:

Inheritance graph
[legend]
Collaboration diagram for ScrollableView:

Collaboration graph
[legend]

Public Member Functions

virtual void pen (unsigned char r, unsigned char g, unsigned char b, int thickness)
virtual void get_pen (unsigned char &r, unsigned char &g, unsigned char &b, int &thickness)
void penstyle (const char *style)
virtual void line (double x1, double y1, double x2, double y2)
virtual void rectangle (double x1, double y1, double x2, double y2)
virtual void dot (double x1, double y1)
virtual void circle (double x1, double y1, double radius)
virtual void arc (double x1, double y1, double radius, double an1, double an2)
virtual void bezier (double x1, double y1, double x2, double y2, double x3, double y3)
virtual void fill_h_triangle (double x1, double y1, double x2, double y2, double x3)
virtual void fill_v_triangle (double x1, double y1, double x2, double y2, double y3)
virtual void fillrect (double x1, double y1, double x2, double y2, unsigned char fr, unsigned char fg, unsigned char fb)
virtual void repaint (void)
virtual void clear (void)
virtual void repaint_surface (void)
virtual void clear_surface (void)
virtual void clear_rect (double, double, double, double)
virtual void repaint_rect (double, double, double, double)
void clear_rect_x (double, double, double, double)
void repaint_rect_x (double, double, double, double)
virtual void textout (double x1, double y1, const char *text)
virtual void textrect (double x1, double y1, double x2, double y2, const char *text)
virtual void setfontsize (double)
void setjustification (textjustify)
void setfont (const char *)
void scroll_to (double x, double y)
virtual void scroll (double xinc, double yinc)
virtual void center (double xpos, double ypos)
double get_x (void)
double get_y (void)
virtual void get_rect (double &, double &, double &, double &)
void get_screenrect (double &, double &, double &, double &)
void get_surfacerect (double &, double &, double &, double &)
int get_width (void)
int get_height (void)
virtual bool rectfits (double, double, double, double)
int get_screenx (void)
int get_screeny (void)
void setcursor (SurfaceCursor *)
SurfaceCursorgetcursor (void)
void showcursor (bool)
void get_mousepos (int &, int &)
void get_scenemousepos (double &, double &)
msbutton get_mousestate (void)
void enqueue_event (Event *)
Imageload_image (const char *)
virtual void put_image (Image *, int destx, int desty, double imgz=1.)
void repaint_due (void)
 ScrollableView (SurfaceDriver *, int, int, int, int, unsigned char, unsigned char, unsigned char)

Protected Attributes

SurfaceDriversdriver
double posx
 View's absolute position on the virtual canvas.

double posy
 View's absolute position on the virtual canvas.

int screenx
 View's position on the surface.

int screeny
 View's position on the surface.

int width
 View's size on the surface.

int height
 View's size on the surface.

unsigned char bkgr
 View's background color.

unsigned char bkgg
 View's background color.

unsigned char bkgb
 View's background color.

bool brepaint_due

Constructor & Destructor Documentation

ScrollableView::ScrollableView SurfaceDriver ,
int  ,
int  ,
int  ,
int  ,
unsigned  char,
unsigned  char,
unsigned  char
 

Here is the call graph for this function:


Member Function Documentation

void ScrollableView::pen unsigned char  r,
unsigned char  g,
unsigned char  b,
int  thickness
[virtual]
 

Here is the call graph for this function:

void ScrollableView::get_pen unsigned char &  r,
unsigned char &  g,
unsigned char &  b,
int &  thickness
[virtual]
 

Here is the call graph for this function:

void ScrollableView::penstyle const char *  style  ) 
 

Here is the call graph for this function:

void ScrollableView::line double  x1,
double  y1,
double  x2,
double  y2
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::rectangle double  x1,
double  y1,
double  x2,
double  y2
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::dot double  x1,
double  y1
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::circle double  x1,
double  y1,
double  radius
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::arc double  x1,
double  y1,
double  radius,
double  an1,
double  an2
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::bezier double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::fill_h_triangle double  x1,
double  y1,
double  x2,
double  y2,
double  x3
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::fill_v_triangle double  x1,
double  y1,
double  x2,
double  y2,
double  y3
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::fillrect double  x1,
double  y1,
double  x2,
double  y2,
unsigned char  fr,
unsigned char  fg,
unsigned char  fb
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::repaint void   )  [virtual]
 

Here is the call graph for this function:

void ScrollableView::clear void   )  [virtual]
 

Here is the call graph for this function:

void ScrollableView::repaint_surface void   )  [virtual]
 

Here is the call graph for this function:

void ScrollableView::clear_surface void   )  [virtual]
 

Here is the call graph for this function:

void ScrollableView::clear_rect double  ,
double  ,
double  ,
double 
[virtual]
 

Reimplemented in ZoomableSurfaceView, and ZoomableView.

Here is the call graph for this function:

void ScrollableView::repaint_rect double  ,
double  ,
double  ,
double 
[virtual]
 

Reimplemented in ZoomableSurfaceView, and ZoomableView.

Here is the call graph for this function:

void ScrollableView::clear_rect_x double  ,
double  ,
double  ,
double 
 

Here is the call graph for this function:

void ScrollableView::repaint_rect_x double  ,
double  ,
double  ,
double 
 

Here is the call graph for this function:

void ScrollableView::textout double  x1,
double  y1,
const char *  text
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::textrect double  x1,
double  y1,
double  x2,
double  y2,
const char *  text
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::setfontsize double   )  [virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::setjustification textjustify   ) 
 

Here is the call graph for this function:

void ScrollableView::setfont const char *   ) 
 

Here is the call graph for this function:

void ScrollableView::scroll_to double  x,
double  y
 

void ScrollableView::scroll double  xinc,
double  yinc
[virtual]
 

Reimplemented in ZoomableSurfaceView.

void ScrollableView::center double  xpos,
double  ypos
[virtual]
 

Reimplemented in ZoomableSurfaceView.

double ScrollableView::get_x void   ) 
 

double ScrollableView::get_y void   ) 
 

void ScrollableView::get_rect double &  ,
double &  ,
double &  ,
double & 
[virtual]
 

Reimplemented in ZoomableSurfaceView, and ZoomableView.

void ScrollableView::get_screenrect double &  ,
double &  ,
double &  ,
double & 
 

void ScrollableView::get_surfacerect double &  ,
double &  ,
double &  ,
double & 
 

Here is the call graph for this function:

int ScrollableView::get_width void   ) 
 

int ScrollableView::get_height void   ) 
 

bool ScrollableView::rectfits double  ,
double  ,
double  ,
double 
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

int ScrollableView::get_screenx void   ) 
 

int ScrollableView::get_screeny void   ) 
 

void ScrollableView::setcursor SurfaceCursor  ) 
 

Here is the call graph for this function:

SurfaceCursor * ScrollableView::getcursor void   ) 
 

Here is the call graph for this function:

void ScrollableView::showcursor bool   ) 
 

Here is the call graph for this function:

void ScrollableView::get_mousepos int &  ,
int & 
 

Here is the call graph for this function:

void ScrollableView::get_scenemousepos double &  ,
double & 
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

msbutton ScrollableView::get_mousestate void   ) 
 

Here is the call graph for this function:

void ScrollableView::enqueue_event Event  ) 
 

Here is the call graph for this function:

Image * ScrollableView::load_image const char *   ) 
 

Here is the call graph for this function:

void ScrollableView::put_image Image ,
int  destx,
int  desty,
double  imgz = 1.
[virtual]
 

Reimplemented in ZoomableSurfaceView.

Here is the call graph for this function:

void ScrollableView::repaint_due void   )  [inline]
 


Field Documentation

SurfaceDriver* ScrollableView::sdriver [protected]
 

double ScrollableView::posx [protected]
 

View's absolute position on the virtual canvas.

double ScrollableView::posy [protected]
 

View's absolute position on the virtual canvas.

int ScrollableView::screenx [protected]
 

View's position on the surface.

int ScrollableView::screeny [protected]
 

View's position on the surface.

int ScrollableView::width [protected]
 

View's size on the surface.

int ScrollableView::height [protected]
 

View's size on the surface.

unsigned char ScrollableView::bkgr [protected]
 

View's background color.

unsigned char ScrollableView::bkgg [protected]
 

View's background color.

unsigned char ScrollableView::bkgb [protected]
 

View's background color.

bool ScrollableView::brepaint_due [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:38 2004 for cZUI by doxygen 1.3.5