KChart
KChartRelativePosition.h
82 * \sa setReferenceArea, setReferencePosition, setAlignment, setHorizontalPadding, setVerticalPadding
96 * \sa resetReferencePosition, setReferenceArea, setAlignment, setHorizontalPadding, setVerticalPadding, KChart::Position
108 * \sa setReferencePosition, setReferenceArea, setAlignment, setHorizontalPadding, setVerticalPadding, KChart::Position
161 * \brief Return the reference point, according to the reference area/position, and ignoring padding.
170 * \sa calculatedPoint, setReferenceArea, setReferencePosition, setHorizontalPadding, setVerticalPadding
193inline bool RelativePosition::operator!=( const RelativePosition & other ) const { return !operator==( other ); }
Contains KChart macros.
Measure is used to specify relative and absolute sizes in KChart, e.g.
Definition KChartMeasure.h:38
Stores the absolute target points of a Position.
Definition KChartPosition.h:132
Defines relative position information: reference area, position in this area (reference position),...
Definition KChartRelativePosition.h:44
void setReferencePoints(const PositionPoints &points)
Set a set of points from which the anchor point will be selected.
Definition KChartRelativePosition.cpp:87
void setReferenceArea(QObject *area)
Set the reference area to be used to find the anchor point.
Definition KChartRelativePosition.cpp:77
void resetReferencePosition()
Resets the position of the anchor point to the built-in default.
Definition KChartRelativePosition.cpp:100
void setAlignment(Qt::Alignment flags)
Set the alignment of the content placed by this RelativePosition.
Definition KChartRelativePosition.cpp:108
void setReferencePosition(Position position)
Set the position of the anchor point.
Definition KChartRelativePosition.cpp:96
void setVerticalPadding(const Measure &padding)
Set the height of the vertical padding between the anchor point and the content placed by this Relati...
Definition KChartRelativePosition.cpp:124
const QPointF calculatedPoint(const QSizeF &autoSize) const
Calculate a point, accordin to the reference area/position and the padding.
Definition KChartRelativePosition.cpp:172
const QPointF referencePoint(qreal *polarDegrees=nullptr) const
Return the reference point, according to the reference area/position, and ignoring padding.
Definition KChartRelativePosition.cpp:141
void setHorizontalPadding(const Measure &padding)
Set the width of the horizontal padding between the anchor point and the content placed by this Relat...
Definition KChartRelativePosition.cpp:116
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.