QgsLayoutViewRubberBand is an abstract base class for temporary rubber band items in various shapes, for use within QgsLayoutView widgets.
More...
#include <qgslayoutviewrubberband.h>
|
void | sizeChanged (const QString &size) |
| Emitted when the size of the rubber band is changed. More...
|
|
|
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...
|
|
QgsLayoutViewRubberBand is an abstract base class for temporary rubber band items in various shapes, for use within QgsLayoutView widgets.
- Since
- QGIS 3.0
Definition at line 37 of file qgslayoutviewrubberband.h.
◆ QgsLayoutViewRubberBand()
QgsLayoutViewRubberBand::QgsLayoutViewRubberBand |
( |
QgsLayoutView * |
view = nullptr | ) |
|
◆ ~QgsLayoutViewRubberBand()
QgsLayoutViewRubberBand::~QgsLayoutViewRubberBand |
( |
| ) |
|
|
overridedefault |
◆ brush()
QBrush QgsLayoutViewRubberBand::brush |
( |
| ) |
const |
◆ create()
◆ finish()
virtual QRectF QgsLayoutViewRubberBand::finish |
( |
QPointF |
position = QPointF() , |
|
|
Qt::KeyboardModifiers |
modifiers = Qt::KeyboardModifiers() |
|
) |
| |
|
pure virtual |
◆ layout()
QgsLayout * QgsLayoutViewRubberBand::layout |
( |
| ) |
const |
◆ pen()
QPen QgsLayoutViewRubberBand::pen |
( |
| ) |
const |
◆ setBrush()
void QgsLayoutViewRubberBand::setBrush |
( |
const QBrush & |
brush | ) |
|
◆ setPen()
void QgsLayoutViewRubberBand::setPen |
( |
const QPen & |
pen | ) |
|
◆ sizeChanged
void QgsLayoutViewRubberBand::sizeChanged |
( |
const QString & |
size | ) |
|
|
signal |
Emitted when the size of the rubber band is changed.
The size argument gives a translated string describing the new rubber band size, with a format which differs per subclass (e.g. rectangles may describe a size using width and height, while circles may describe a size by radius).
◆ start()
virtual void QgsLayoutViewRubberBand::start |
( |
QPointF |
position, |
|
|
Qt::KeyboardModifiers |
modifiers |
|
) |
| |
|
pure virtual |
◆ update()
virtual void QgsLayoutViewRubberBand::update |
( |
QPointF |
position, |
|
|
Qt::KeyboardModifiers |
modifiers |
|
) |
| |
|
pure virtual |
◆ updateRect()
QRectF QgsLayoutViewRubberBand::updateRect |
( |
QPointF |
start, |
|
|
QPointF |
position, |
|
|
bool |
constrainSquare, |
|
|
bool |
fromCenter |
|
) |
| |
|
protected |
Calculates an updated bounding box rectangle from a original start position and new position.
If constrainSquare is true
then the bounding box will be forced to a square shape. If fromCenter is true
then the original start position will form the center point of the returned rectangle.
Definition at line 40 of file qgslayoutviewrubberband.cpp.
◆ view()
The documentation for this class was generated from the following files: