23 #ifndef KDCHARTTEXTLABELCACHE_H 24 #define KDCHARTTEXTLABELCACHE_H 44 virtual const QPixmap&
pixmap()
const = 0;
103 void setFont(
const QFont& font );
104 const QFont& font()
const;
106 void setText(
const QString& text );
107 const QString& text()
const;
109 void setBrush(
const QBrush& brush );
110 const QBrush& brush()
const;
112 void setPen(
const QPen& );
113 const QPen& pen()
const;
115 void setAngle( qreal angle );
119 const QPixmap&
pixmap()
const override;
134 mutable bool m_dirty;
142 mutable QPixmap m_pixmap;
143 mutable QPointF m_referenceBottomLeft;
144 mutable QPointF m_textBaseLineVector;
145 mutable QPointF m_textAscendVector;
virtual QPointF referencePointLocation(KDChartEnums::PositionValue) const =0
Return the location of the reference point relatively to the pixmap's origin.
virtual const QPixmap & pixmap() const =0
Returns the rendered element.
Definition of global enums.
const QPointF & position() const
Get the position of the element.
virtual void invalidate() const =0
invalidate() needs to be called if any of the properties that determine the visual appearance of the ...
virtual ~PrerenderedElement()
KDChartEnums::PositionValue referencePoint() const
Get the reference point of the element.
PrerenderedLabel is an internal KDChart class that simplifies creation and caching of cached text lab...
base class for prerendered elements like labels, pixmaps, markers, etc.
void setReferencePoint(KDChartEnums::PositionValue)
Set the reference point of the element.
PositionValue
Numerical values of the static KDChart::Position instances, for using a Position::value() with a swit...
void setPosition(const QPointF &position)
Set the position of the element.