QCanvasEllipse(3qt)
π QCanvasEllipse π
okay bestie, welcome to the man page for QCanvasEllipse β that's the Qt 3 one, from qcanvas.h, manual section 3qt. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
QCanvasEllipse β Ellipse or ellipse segment on a QCanvas
like, literally just a pretty little oval (or a slice of an oval π) chillin' on your canvas.
π¦ SYNOPSIS π¦
#include <qcanvas.h>
Inherits QCanvasPolygonalItem.
π Public Members
QCanvasEllipse ( QCanvas * canvas )
QCanvasEllipse ( int width, int height, QCanvas * canvas )
QCanvasEllipse ( int width, int height, int startangle, int angle,
QCanvas * canvas )
~QCanvasEllipse ()
int width () const
int height () const
void setSize ( int width, int height )
void setAngles ( int start, int length )
int angleStart () const
int angleLength () const
virtual int rtti () const
π‘οΈ Protected Members
virtual void drawShape ( QPainter & p )
πΈ DESCRIPTION πΈ
The QCanvasEllipse class provides an ellipse or ellipse segment on a QCanvas.
So it's a canvas item that paints an ellipse or ellipse segment with a QBrush. β¨ The ellipse's height, width, start angle and angle length can all be set right at construction time β like, you can walk in already knowing what you want. And the size? Change it whenever with setSize(). The angles? Change those with setAngles() (that's for when you're displaying an ellipse segment rather than a whole entire ellipse, iykyk).
β οΈ ok important: angles are specified in 16ths of a degree. not degrees. sixteenTHS. do not forget or your slice will be a whole vibe in the wrong direction π
<center>
[Image Omitted]
</center>
(there was a diagram here, bestie, it's gone now, we move π«Ά)
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 counter-clockwise direction (shown in green in the diagram). The length angle is the angle from the start angle in a counter-clockwise 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(). so many ways to make it go places π
π¨ Note: QCanvasEllipse does not use the pen. no pen. none. it's giving brush-only.
See also Graphics Classes and Image Processing Classes.
π MEMBER FUNCTION DOCUMENTATION π
QCanvasEllipse::QCanvasEllipse ( QCanvas * canvas )
Constructs a 32x32 ellipse, centered at (0, 0) on canvas.
QCanvasEllipse::QCanvasEllipse ( int width, int height, QCanvas * canvas )
Constructs a width by height pixel ellipse, centered at (0, 0) on canvas.
QCanvasEllipse::QCanvasEllipse ( int width, int height, int startangle, int angle, QCanvas * canvas )
Constructs a width by height pixel ellipse, centered at (0, 0) on canvas. Only a segment of the ellipse is drawn, starting at angle startangle, and extending for angle angle (the angle length).
Note that angles are specified in <sup>1</sup>/<sub>16</sub>ths of a degree. β (yes again. it's always 16ths.)
QCanvasEllipse::~QCanvasEllipse ()
Destroys the ellipse. bye girl ππ
int QCanvasEllipse::angleLength () const
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().
int QCanvasEllipse::angleStart () const
Returns the start angle in 16ths of a degree. Initially this will be 0.
See also setAngles() and angleLength().
void QCanvasEllipse::drawShape ( QPainter & p ) [virtual protected]
Draws the ellipse, centered at x(), y() using the painter p.
β οΈ Note thatQCanvasEllipsedoes not support an outline (the pen is alwaysNoPen).
Reimplemented from QCanvasPolygonalItem.
int QCanvasEllipse::height () const
Returns the height of the ellipse.
int QCanvasEllipse::rtti () const [virtual]
Returns 6 (QCanvasItem::Rtti_Ellipse). the ellipses are number six, no cap π₯
See also QCanvasItem::rtti().
Reimplemented from QCanvasPolygonalItem.
void QCanvasEllipse::setAngles ( int start, int length )
Sets the angles for the ellipse. The start angle is start and the extent of the segment is length (the angle length) from the start. The angles are specified in 16ths of a degree. By default the ellipse will start at 0 and have an angle length of 360 * 16 (a complete ellipse).
See also angleStart() and angleLength().
void QCanvasEllipse::setSize ( int width, int height )
Sets the width and height of the ellipse.
int QCanvasEllipse::width () const
Returns the width of the ellipse.
π SEE ALSO π
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
π§ AUTHOR π§
Generated automatically from the source code. (so no human girlie wrote this one, a robot did it, and honestly? slay.)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qcanvasellipse.3qt) and the Qt version (3.3.8).
ok that's the whole thing, you're so welcome π this page came from Trolltech AS, dated 2 February 2007, for the QCanvasEllipse(3qt) manual β go forth and draw some absolutely iconic ovals, bestie, 16ths of a degree at a time πβ¨π¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms