QGIS API Documentation 3.39.0-Master (9ea1ddbe645)
|
QgsLayoutViewTriangleRubberBand is triangular rubber band for use within QgsLayoutView widgets. More...
#include <qgslayoutviewrubberband.h>
Public Member Functions | |
QgsLayoutViewTriangleRubberBand (QgsLayoutView *view=nullptr) | |
Constructor for QgsLayoutViewTriangleRubberBand. | |
~QgsLayoutViewTriangleRubberBand () override | |
QgsLayoutViewTriangleRubberBand * | create (QgsLayoutView *view) const override |
Creates a new instance of the QgsLayoutViewRubberBand subclass. | |
QRectF | finish (QPointF position=QPointF(), Qt::KeyboardModifiers modifiers=Qt::KeyboardModifiers()) override |
Called when a rubber band use has finished and the rubber band is no longer required. | |
void | start (QPointF position, Qt::KeyboardModifiers modifiers) override |
Called when a rubber band should be created at the specified starting position (in layout coordinate space). | |
void | update (QPointF position, Qt::KeyboardModifiers modifiers) override |
Called when a rubber band should be updated to reflect a temporary ending position (in layout coordinate space). | |
![]() | |
QgsLayoutViewRubberBand (QgsLayoutView *view=nullptr) | |
Constructor for QgsLayoutViewRubberBand. | |
~QgsLayoutViewRubberBand () override=default | |
QBrush | brush () const |
Returns the brush used for drawing the rubber band. | |
QgsLayout * | layout () const |
Returns the layout associated with the rubber band. | |
QPen | pen () const |
Returns the pen used for drawing the rubber band. | |
void | setBrush (const QBrush &brush) |
Sets the brush used for drawing the rubber band. | |
void | setPen (const QPen &pen) |
Sets the pen used for drawing the rubber band. | |
QgsLayoutView * | view () const |
Returns the view associated with the rubber band. | |
Additional Inherited Members | |
![]() | |
void | sizeChanged (const QString &size) |
Emitted when the size of the rubber band is changed. | |
![]() | |
QRectF | updateRect (QPointF start, QPointF position, bool constrainSquare, bool fromCenter) |
Calculates an updated bounding box rectangle from a original start position and new position. | |
QgsLayoutViewTriangleRubberBand is triangular rubber band for use within QgsLayoutView widgets.
Definition at line 221 of file qgslayoutviewrubberband.h.
QgsLayoutViewTriangleRubberBand::QgsLayoutViewTriangleRubberBand | ( | QgsLayoutView * | view = nullptr | ) |
Constructor for QgsLayoutViewTriangleRubberBand.
Definition at line 262 of file qgslayoutviewrubberband.cpp.
|
override |
Definition at line 273 of file qgslayoutviewrubberband.cpp.
|
overridevirtual |
Creates a new instance of the QgsLayoutViewRubberBand subclass.
Implements QgsLayoutViewRubberBand.
Definition at line 268 of file qgslayoutviewrubberband.cpp.
|
overridevirtual |
Called when a rubber band use has finished and the rubber band is no longer required.
Returns the final bounding box of the rubber band.
Implements QgsLayoutViewRubberBand.
Definition at line 321 of file qgslayoutviewrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be created at the specified starting position (in layout coordinate space).
Implements QgsLayoutViewRubberBand.
Definition at line 282 of file qgslayoutviewrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be updated to reflect a temporary ending position (in layout coordinate space).
Implements QgsLayoutViewRubberBand.
Definition at line 296 of file qgslayoutviewrubberband.cpp.