 |
KD Chart 2
[rev.2.7]
|
Go to the documentation of this file.
23 #ifndef KDCHARTTEXTLABELCACHE_H
24 #define KDCHARTTEXTLABELCACHE_H
44 virtual const QPixmap&
pixmap()
const = 0;
104 const QFont&
font()
const;
107 const QString&
text()
const;
110 const QBrush&
brush()
const;
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;
PositionValue
Numerical values of the static KDChart::Position instances, for using a Position::value() with a swit...
base class for prerendered elements like labels, pixmaps, markers, etc.
void setPen(const QPen &)
virtual const QPixmap & pixmap() const =0
Returns the rendered element.
const QString & text() const
virtual ~PrerenderedElement()
void setAngle(qreal angle)
Sets the angle of the label to angle degrees.
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...
const QBrush & brush() const
void setReferencePoint(KDChartEnums::PositionValue)
Set the reference point of the element.
Definition of global enums.
QPointF referencePointLocation() const
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 ...
void setBrush(const QBrush &brush)
Sets the label's brush to brush.
void setText(const QString &text)
Sets the label's text to text.
~PrerenderedLabel() override
void setPosition(const QPointF &position)
Set the position of the element.
void setFont(const QFont &font)
Sets the label's font to font.
const QFont & font() const
virtual QPointF referencePointLocation(KDChartEnums::PositionValue) const =0
Return the location of the reference point relatively to the pixmap's origin.
const QPixmap & pixmap() const override
Returns the rendered element.
void invalidate() const override
Invalidates the preredendered data, forces re-rendering.