QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSLAYOUTPOINT_H
19 #define QGSLAYOUTPOINT_H
21 #include "qgis_core.h"
65 void setPoint(
const double x,
const double y ) { mX = x; mY = y; }
72 double x()
const {
return mX; }
79 void setX(
const double x ) { mX = x; }
86 double y()
const {
return mY; }
93 void setY(
const double y ) { mY = y; }
120 QPointF toQPointF()
const;
126 QString encodePoint()
const;
158 SIP_PYOBJECT __repr__();
160 QString str = QStringLiteral(
"<QgsLayoutPoint: %1, %2 %3 >" ).arg( sipCpp->x() ).arg( sipCpp->y() ).arg(
QgsUnitTypes::toAbbreviatedString( sipCpp->units() ) );
161 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
173 #endif // QGSLAYOUTPOINT_H
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
static Q_INVOKABLE QString toAbbreviatedString(QgsUnitTypes::DistanceUnit unit)
Returns a translated abbreviation representing a distance unit.
LayoutUnit
Layout measurement units.
double y() const
Returns y coordinate of point.
QgsMargins operator/(const QgsMargins &margins, double divisor)
Returns a QgsMargins object that is formed by dividing the components of the given margins by the giv...
void setPoint(const double x, const double y)
Sets new x and y coordinates for the point.
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setY(const double y)
Sets y coordinate of point.
QgsMargins operator*(const QgsMargins &margins, double factor)
Returns a QgsMargins object that is formed by multiplying each component of the given margins by fact...
void setX(const double x)
Sets the x coordinate of point.
@ LayoutMillimeters
Millimeters.
This class provides a method of storing points, consisting of an x and y coordinate,...
void setUnits(const QgsUnitTypes::LayoutUnit units)
Sets the units for the point.
double x() const
Returns x coordinate of point.
QgsUnitTypes::LayoutUnit units() const
Returns the units for the point.