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

CArc

Methods Index

Heritage
Description
Usage
Environment
Protected Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
Utility Methods
Inherited Utility Methods
Protected Methods

CArc


Heritage

Superclass: CShape

Subclasses: None


Description

CArc objects paint an arc inside a view. This arc, which is a section of the perimeter of an oval, is drawn counterclockwise along the oval from a given angle to another.


Usage

Create a CArc object and initialize it. Like all CShape classes, this class inherits all the properties of CSubview, including stickiness and the ability to nest other views.


Environment

The line of the arc is drawn with the pen, and its interior is painted with the brush. You can set the color and pattern of both the pen and the brush. Also, you can set the pen width.


Protected Data Members

BOOLEAN itIsFilled; If TRUE, an interior is painted
UNITS itsStartX,itsStartY; The starting point coordinates
UNITS itsEndX,itsEndY; The ending point coordinates
double itsStartAngle,
itsEndAngle;
The starting and ending angle


Public Methods

Constructor, Destructor, and Initializer Methods

CArc(CSubview* theEnclosure, 
const CPoint& theCenter,
UNITS theHRadius,
UNITS theVRadius,
double theStartAngle=0,
double theEndAngle=360);

CArc(CSubview* theEnclosure, 
const CRect& theRegion,
double theStartAngle=0,
double theEndAngle=360);

CArc(const CArc& theArc);
CArc& operator=(const CArc& theArc);
virtual ~CArc(void);
BOOLEAN  IArc(double  theStartAngle		= 0,
double theEndAngle = 360,
BOOLEAN isFilled = FALSE,
BOOLEAN isVisible = TRUE,
GLUETYPE theGlue = NULLSTICKY);
virtual void Draw(const CRect& theClippingRegion);

Utility Methods

virtual void SetFilled(BOOLEAN isFilled);
virtual BOOLEAN IsFilled(void);
virtual void SetAngles(double theStartingAngle, double theEndingAngle);
virtual double GetStartingAngle(void);
virtual double GetEndingAngle(void);

Inherited Utility Methods

virtual void Size(const CRect& theNewSize);

Protected Methods

void SetDrawingPoints(const CPoint& theStartingPoint,
const CPoint& theEndingPoint);


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

support@xvt.com


Visit our online help desk for tech support

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