[Classes] [Prev] [Next] [Methods]

CShape

Methods Index

Heritage
Description
Usage
Public Methods
Protected Methods
Overrides

CShape


Heritage

Superclass: CSubview

Subclasses: CArc, CLine, COval, CPolygon, CRectangle


Description

CShape is an abstract parent class for such drawing tools as rectangles, circles, lines, polygons, and so on. This is a subclass of CSubview, so CShape objects can contain other nested views, and they can be moved and sized.


Usage

This class is an abstraction for drawing tools. You should use it to derive other shape classes as needed.


Public Methods


Protected Methods

CShape(CSubview *theEnclosure, 
const CRect& theRegion);
CShape(const CShape& theShape);
CShape& operator=(const CShape& theShape);
virtual ~CShape(void);
BOOLEAN IShape(BOOLEAN isVisible = TRUE, 
GLUETYPE theGlue = NULLSTICKY);
virtual void Draw(const CRect& theClippingRegion);

Overrides

Each inherited class must override the CShape draw function and call it before proceeding with its own drawing code. You may also have to override some methods inherited from CSubview, such as dragging and sizing.



[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.