Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CSketchView Class Reference

A class to display and edit a sketch. More...

#include <SketchApp.h>

Inheritance diagram for CSketchView::

CWidget List of all members.

Public Methods

 CSketchView (int x, int y, int width, int height)
 ~CSketchView ()
virtual void draw (CGfxScreen *S)
int update (CInputEvent *e)
 Update method - Recieves a CInputEvent, returns 1 if redraw is needed, 0 if not. More...


Public Attributes

CSketchm_sketch
bool m_drawing
bool m_bold
int m_mode
int sx
int sy
int cx
int cy
int m_width

Detailed Description

A class to display and edit a sketch.

Can display or allow stylus-editing of any sketch


Constructor & Destructor Documentation

CSketchView::CSketchView int    x,
int    y,
int    width,
int    height
[inline]
 

CSketchView::~CSketchView  
 


Member Function Documentation

void CSketchView::draw CGfxScreen   S [virtual]
 

FILE SketchApp.cpp

Id:
SketchApp.cpp,v 1.2 2001/11/29 10:12:22 cmicali Exp

DESCRIPTION Sketch application

Reimplemented from CWidget.

int CSketchView::update CInputEvent   e [virtual]
 

Update method - Recieves a CInputEvent, returns 1 if redraw is needed, 0 if not.

All keyboard and mouse (stylus) events are sent to this function. If the widget wants to trap the events, it can, and must return 1 if the screen needs to be redrawn and 0 if it does not (ie nothing happened or the action did not change the screen)

Reimplemented from CWidget.


Member Data Documentation

int CSketchView::cx
 

int CSketchView::cy
 

bool CSketchView::m_bold
 

bool CSketchView::m_drawing
 

int CSketchView::m_mode
 

CSketch* CSketchView::m_sketch
 

int CSketchView::m_width
 

int CSketchView::sx
 

int CSketchView::sy
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:57 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001