QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
QgsLayoutViewRectangularRubberBand is rectangular rubber band for use within QgsLayoutView widgets. More...
#include <qgslayoutviewrubberband.h>
Public Member Functions | |
QgsLayoutViewRectangularRubberBand (QgsLayoutView *view=nullptr) | |
Constructor for QgsLayoutViewRectangularRubberBand. More... | |
~QgsLayoutViewRectangularRubberBand () override | |
QgsLayoutViewRectangularRubberBand * | create (QgsLayoutView *view) const override |
Creates a new instance of the QgsLayoutViewRubberBand subclass. More... | |
QRectF | finish (QPointF position=QPointF(), Qt::KeyboardModifiers modifiers=nullptr) override |
Called when a rubber band use has finished and the rubber band is no longer required. More... | |
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). More... | |
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). More... | |
Public Member Functions inherited from QgsLayoutViewRubberBand | |
QgsLayoutViewRubberBand (QgsLayoutView *view=nullptr) | |
Constructor for QgsLayoutViewRubberBand. More... | |
~QgsLayoutViewRubberBand () override=default | |
QBrush | brush () const |
Returns the brush used for drawing the rubber band. More... | |
QgsLayout * | layout () const |
Returns the layout associated with the rubber band. More... | |
QPen | pen () const |
Returns the pen used for drawing the rubber band. More... | |
void | setBrush (const QBrush &brush) |
Sets the brush used for drawing the rubber band. More... | |
void | setPen (const QPen &pen) |
Sets the pen used for drawing the rubber band. More... | |
QgsLayoutView * | view () const |
Returns the view associated with the rubber band. More... | |
Additional Inherited Members | |
Signals inherited from QgsLayoutViewRubberBand | |
void | sizeChanged (const QString &size) |
Emitted when the size of the rubber band is changed. More... | |
Protected Member Functions inherited from QgsLayoutViewRubberBand | |
QRectF | updateRect (QPointF start, QPointF position, bool constrainSquare, bool fromCenter) |
Calculates an updated bounding box rectangle from a original start position and new position. More... | |
QgsLayoutViewRectangularRubberBand is rectangular rubber band for use within QgsLayoutView widgets.
Definition at line 159 of file qgslayoutviewrubberband.h.
QgsLayoutViewRectangularRubberBand::QgsLayoutViewRectangularRubberBand | ( | QgsLayoutView * | view = nullptr | ) |
Constructor for QgsLayoutViewRectangularRubberBand.
Definition at line 124 of file qgslayoutviewrubberband.cpp.
|
override |
Definition at line 134 of file qgslayoutviewrubberband.cpp.
|
overridevirtual |
Creates a new instance of the QgsLayoutViewRubberBand subclass.
Implements QgsLayoutViewRubberBand.
Definition at line 129 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 176 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 143 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 157 of file qgslayoutviewrubberband.cpp.