QCanvasPolygon(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QCanvasPolygon β€” bestie edition πŸ’–

okay so this is the QCanvasPolygon(3qt) manual page, and we're gonna make it make sense. it's giving Qt 3, it's giving canvas graphics, it's giving polygon realness. let's go πŸ¦‹


✨ NAME ✨

QCanvasPolygon β€” a whole polygon, but make it live on a QCanvas πŸ’…


🌸 SYNOPSIS 🌸

#include <qcanvas.h>

Inherits QCanvasPolygonalItem.

Inherited by QCanvasSpline.

πŸŽ€ Public Members

QCanvasPolygon ( QCanvas * canvas )
~QCanvasPolygon ()
void setPoints ( QPointArray pa )
QPointArray points () const
virtual QPointArray areaPoints () const
virtual int rtti () const

🧚 Protected Members

virtual void drawShape ( QPainter & p )

πŸ‘‘ DESCRIPTION πŸ‘‘

The QCanvasPolygon class provides a polygon on a QCanvas. no cap, that's the whole job and it does it beautifully.

It paints a polygon with a QBrush. the polygon's points can be set in the constructor, or set or changed later using setPoints(). wanna get them back? use points(). wanna get them relative to the canvas's origin? that's areaPoints()'s moment. ✨

The polygon can be drawn on a painter with drawShape(). iconic.

Like any other canvas item, polygons can be moved with QCanvasItem::move() and QCanvasItem::moveBy(), or by setting coordinates with QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ(). move it around bestie, it's your polygon πŸ’ƒ

⚠️ Note: QCanvasPolygon does not use the pen. like. at all. the pen is simply not invited to this party πŸ™ˆ

See also Graphics Classes and Image Processing Classes.


πŸ’€ MEMBER FUNCTION DOCUMENTATION πŸ’€

QCanvasPolygon::QCanvasPolygon ( QCanvas * canvas )

Constructs a point-less polygon on the canvas canvas. literally zero points, empty, a blank canvas of a canvas item 😭

You should call setPoints() before using it further. fr fr. do it. it's nothing without points.


QCanvasPolygon::~QCanvasPolygon ()

Destroys the polygon. bye bestie πŸ‘‹πŸ’œ


QPointArray QCanvasPolygon::areaPoints () const [virtual]

Returns the vertices of the polygon translated by the polygon's current x(), y() position β€” i.e. relative to the canvas's origin. so it's the "where is it actually" version of the points. the main character coordinates 🫢

See also setPoints() and points().

Reimplemented from QCanvasPolygonalItem.


void QCanvasPolygon::drawShape ( QPainter & p ) [virtual protected]

Draws the polygon using the painter p. slay πŸ’…

⚠️ Note that QCanvasPolygon does not support an outline β€” the pen is always NoPen. so don't come looking for an outline, it's not there, it never was 🌸

Reimplemented from QCanvasPolygonalItem.


QPointArray QCanvasPolygon::points () const

Returns the vertices of the polygon, not translated by the position. so like, the raw local points, before any moving-around happens. the unedited version, if you will πŸ’–

See also setPoints() and areaPoints().


int QCanvasPolygon::rtti () const [virtual]

Returns 4 (QCanvasItem::Rtti_Polygon). that's its little ID badge, its vibe check number, its ✨ identity ✨

See also QCanvasItem::rtti().

Reimplemented from QCanvasPolygonalItem.

Reimplemented in QCanvasSpline.


void QCanvasPolygon::setPoints ( QPointArray pa )

Sets the points of the polygon to be pa. these points will have their x and y coordinates automatically translated by x(), y() as the polygon is moved. so you set them once, and the polygon handles the moving math itself. lowkey so convenient πŸ¦‹


🌈 SEE ALSO 🌈


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 like, a robot wrote it. respect honestly πŸ€–πŸ’œ)


πŸ’… 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. 🫢 (they're literally begging you to file good bug reports, so give them details, bestie)

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. so like, this is the fan-made version, the HTML is the canon πŸ’€

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qcanvaspolygon.3qt) and the Qt version (3.3.8). include the version!! they will ask!! πŸ™ˆ


and that's the whole page bestie βœ¨πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­

this little masterpiece dropped on 2 February 2007, brought to you by Trolltech AS, and it's riding with Qt 3.3.8 β€” ok love u bye πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from