18#ifndef QGSLAYOUTPOINT_H 
   19#define QGSLAYOUTPOINT_H 
   67    void setPoint( 
const double x, 
const double y ) { mX = x; mY = y; }
 
   74    double x()
 const { 
return mX; }
 
   81    void setX( 
const double x )
 
   84      Q_ASSERT_X( !std::isnan( x ), 
"QgsLayoutPoint", 
"Layout point with NaN coordinates created" );
 
 
   94    double y()
 const { 
return mY; }
 
  104      Q_ASSERT_X( !std::isnan( y ), 
"QgsLayoutPoint", 
"Layout point with NaN coordinates created" );
 
 
  134    QPointF toQPointF() 
const;
 
  140    QString encodePoint() 
const;
 
  172    SIP_PYOBJECT __repr__();
 
  174    QString str = QStringLiteral( 
"<QgsLayoutPoint: %1, %2 %3 >" ).arg( sipCpp->x() ).arg( sipCpp->y() ).arg( 
QgsUnitTypes::toAbbreviatedString( sipCpp->units() ) );
 
  175    sipRes = PyUnicode_FromString( str.toUtf8().constData() );
 
 
LayoutUnit
Layout measurement units.
 
@ Millimeters
Millimeters.
 
Provides a method of storing points, consisting of an x and y coordinate, for use in QGIS layouts.
 
double x() const
Returns x coordinate of point.
 
void setX(const double x)
Sets the x coordinate of point.
 
void setUnits(const Qgis::LayoutUnit units)
Sets the units for the point.
 
double y() const
Returns y coordinate of point.
 
Qgis::LayoutUnit units() const
Returns the units for the point.
 
void setY(const double y)
Sets y coordinate of point.
 
void setPoint(const double x, const double y)
Sets new x and y coordinates for the point.
 
static Q_INVOKABLE QString toAbbreviatedString(Qgis::DistanceUnit unit)
Returns a translated abbreviation representing a distance unit.
 
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
QgsMargins operator*(const QgsMargins &margins, double factor)
Returns a QgsMargins object that is formed by multiplying each component of the given margins by fact...
 
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...