QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Contains utility functions for generating shapes. More...
#include <qgsshapegenerator.h>
Static Public Member Functions | |
static QPolygonF | createBalloon (const QgsPointXY &origin, const QRectF &rect, double wedgeWidth) |
Generates a "balloon"/"talking bubble" style shape (as a QPolygonF). | |
static QPainterPath | createBalloon (const QgsPointXY &origin, const QRectF &rect, double wedgeWidth, double cornerRadius) |
Generates a "balloon"/"talking bubble" style shape (as a painter path). | |
Contains utility functions for generating shapes.
Definition at line 37 of file qgsshapegenerator.h.
|
static |
Generates a "balloon"/"talking bubble" style shape (as a QPolygonF).
The origin point indicates the starting point for the pointing wedge portion of the balloon.
The rect argument specifies the rectangular bounds of the main body of the balloon.
The wedgeWidth argument gives the width of the pointing wedge portion of the balloon at the position where it joins with the balloon's main body.
Definition at line 55 of file qgsshapegenerator.cpp.
|
static |
Generates a "balloon"/"talking bubble" style shape (as a painter path).
The origin point indicates the starting point for the pointing wedge portion of the balloon.
The rect argument specifies the rectangular bounds of the main body of the balloon.
The wedgeWidth argument gives the width of the pointing wedge portion of the balloon at the position where it joins with the balloon's main body.
The cornerRadius argument gives the radius for rounding corners on the main bubble rectangle.
Definition at line 60 of file qgsshapegenerator.cpp.