KChart
KChartRelativePosition.cpp
174 const qreal dx = horizontalPadding().calculatedValue( autoSize, KChartEnums::MeasureOrientationHorizontal );
175 const qreal dy = verticalPadding().calculatedValue( autoSize, KChartEnums::MeasureOrientationVertical );
Definition of global enums.
Declaring the class KChart::Measure.
An area in the chart with a background, a frame, etc.
Definition KChartAbstractArea.h:36
Measure is used to specify relative and absolute sizes in KChart, e.g.
Definition KChartMeasure.h:38
qreal calculatedValue(const QObject *autoArea, KChartEnums::MeasureOrientation autoOrientation) const
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derive...
Definition KChartMeasure.cpp:121
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
const QList< QKeySequence > & copy()
virtual QRect geometry() const const override
virtual QLayout * layout() override
void setX(qreal x)
void setY(qreal y)
qreal x() const const
qreal y() const const
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.