Home  All Classes  Main Classes  Annotated  Grouped Classes  Functions 
The TQCanvasEllipse class provides an ellipse or ellipse segment on a TQCanvas. More...
#include <ntqcanvas.h>
Inherits TQCanvasPolygonalItem.
A canvas item that paints an ellipse or ellipse segment with a TQBrush. The ellipse's height, width, start angle and angle length can be set at construction time. The size can be changed at runtime with setSize(), and the angles can be changed (if you're displaying an ellipse segment rather than a whole ellipse) with setAngles().
Note that angles are specified in 16ths of a degree.
If a start angle and length angle are set then an ellipse segment will be drawn. The start angle is the angle that goes from zero in a counterclockwise direction (shown in green in the diagram). The length angle is the angle from the start angle in a counterclockwise direction (shown in blue in the diagram). The blue segment is the segment of the ellipse that would be drawn. If no start angle and length angle are specified the entire ellipse is drawn.
The ellipse can be drawn on a painter with drawShape().
Like any other canvas item ellipses can be moved with move() and moveBy(), or by setting coordinates with setX(), setY() and setZ().
Note: TQCanvasEllipse does not use the pen.
See also Graphics Classes and Image Processing Classes.
Note that angles are specified in ^{1}/_{16}ths of a degree.
Returns the length angle (the extent of the ellipse segment) in 16ths of a degree. Initially this will be 360 * 16 (a complete ellipse).
See also setAngles() and angleStart().
Returns the start angle in 16ths of a degree. Initially this will be 0.
See also setAngles() and angleLength().
Note that TQCanvasEllipse does not support an outline (the pen is always NoPen).
Reimplemented from TQCanvasPolygonalItem.
See also TQCanvasItem::rtti().
Reimplemented from TQCanvasPolygonalItem.
See also angleStart() and angleLength().
This file is part of the TQt toolkit. Copyright © 19952007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech  Trademarks  TQt 3.3.8
