KChart
KChartTextLabelCache.h
Definition of global enums.
PositionValue
Numerical values of the static KChart::Position instances, for using a Position::value() with a switc...
Definition KChartEnums.h:180
base class for prerendered elements like labels, pixmaps, markers, etc.
Definition KChartTextLabelCache.h:22
virtual QPointF referencePointLocation(KChartEnums::PositionValue) const =0
Return the location of the reference point relatively to the pixmap's origin.
virtual void invalidate() const =0
invalidate() needs to be called if any of the properties that determine the visual appearance of the ...
void setPosition(const QPointF &position)
Set the position of the element.
Definition KChartTextLabelCache.cpp:42
void setReferencePoint(KChartEnums::PositionValue)
Set the reference point of the element.
Definition KChartTextLabelCache.cpp:52
KChartEnums::PositionValue referencePoint() const
Get the reference point of the element.
Definition KChartTextLabelCache.cpp:57
const QPointF & position() const
Get the position of the element.
Definition KChartTextLabelCache.cpp:47
PrerenderedLabel is an internal KChart class that simplifies creation and caching of cached text labe...
Definition KChartTextLabelCache.h:84
void setAngle(qreal angle)
Sets the angle of the label to angle degrees.
Definition KChartTextLabelCache.cpp:115
void invalidate() const override
Invalidates the preredendered data, forces re-rendering.
Definition KChartTextLabelCache.cpp:77
void setBrush(const QBrush &brush)
Sets the label's brush to brush.
Definition KChartTextLabelCache.cpp:104
const QPixmap & pixmap() const override
Returns the rendered element.
Definition KChartTextLabelCache.cpp:126
QPointF referencePointLocation(KChartEnums::PositionValue position) const override
Return the location of the reference point relatively to the pixmap's origin.
Definition KChartTextLabelCache.cpp:244
void setText(const QString &text)
Sets the label's text to text.
Definition KChartTextLabelCache.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.