KChart::TextLayoutItem
#include <KChartLayoutItems.h>

Public Member Functions | |
| TextLayoutItem (const QString &text, const TextAttributes &attributes, const QObject *autoReferenceArea, KChartEnums::MeasureOrientation autoReferenceOrientation, Qt::Alignment alignment=Qt::Alignment()) | |
| const QObject * | autoReferenceArea () const |
| QPolygon | boundingPolygon () const |
| Qt::Orientations | expandingDirections () const override |
| QRect | geometry () const override |
| virtual bool | intersects (const TextLayoutItem &other, const QPoint &myPos, const QPoint &otherPos) const |
| virtual bool | intersects (const TextLayoutItem &other, const QPointF &myPos, const QPointF &otherPos) const |
| bool | isEmpty () const override |
| virtual int | marginWidth () const |
| QSize | maximumSize () const override |
| QSize | minimumSize () const override |
| void | paint (QPainter *) override |
| virtual QFont | realFont () const |
| virtual qreal | realFontSize () const |
| void | setAutoReferenceArea (const QObject *area) |
| void | setGeometry (const QRect &r) override |
| void | setText (const QString &text) |
| void | setTextAlignment (Qt::Alignment) |
| void | setTextAttributes (const TextAttributes &a) |
| QSize | sizeHint () const override |
| virtual QSize | sizeHintUnrotated () const |
| QString | text () const |
| Qt::Alignment | textAlignment () const |
| TextAttributes | textAttributes () const |
Public Member Functions inherited from KChart::AbstractLayoutItem | |
| AbstractLayoutItem (Qt::Alignment itemAlignment=Qt::Alignment()) | |
| virtual void | paintAll (QPainter &painter) |
| virtual void | paintCtx (PaintContext *context) |
| QLayout * | parentLayout () |
| void | removeFromParentLayout () |
| void | setParentLayout (QLayout *lay) |
| virtual void | setParentWidget (QWidget *widget) |
| virtual void | sizeHintChanged () const |
Public Member Functions inherited from QLayoutItem | |
| QLayoutItem (Qt::Alignment alignment) | |
| Qt::Alignment | alignment () const const |
| virtual QSizePolicy::ControlTypes | controlTypes () const const |
| virtual bool | hasHeightForWidth () const const |
| virtual int | heightForWidth (int) const const |
| virtual void | invalidate () |
| virtual QLayout * | layout () |
| virtual int | minimumHeightForWidth (int w) const const |
| void | setAlignment (Qt::Alignment alignment) |
| virtual QSpacerItem * | spacerItem () |
| virtual QWidget * | widget () const const |
Additional Inherited Members | |
Protected Attributes inherited from KChart::AbstractLayoutItem | |
| QWidget * | mParent |
| QLayout * | mParentLayout |
Detailed Description
Layout item showing a text.
Definition at line 103 of file KChartLayoutItems.h.
Constructor & Destructor Documentation
◆ TextLayoutItem() [1/2]
| KChart::TextLayoutItem::TextLayoutItem | ( | ) |
Definition at line 188 of file KChartLayoutItems.cpp.
◆ TextLayoutItem() [2/2]
| KChart::TextLayoutItem::TextLayoutItem | ( | const QString & | text, |
| const TextAttributes & | attributes, | ||
| const QObject * | autoReferenceArea, | ||
| KChartEnums::MeasureOrientation | autoReferenceOrientation, | ||
| Qt::Alignment | alignment = Qt::Alignment() ) |
Definition at line 171 of file KChartLayoutItems.cpp.
Member Function Documentation
◆ autoReferenceArea()
| const QObject * KChart::TextLayoutItem::autoReferenceArea | ( | ) | const |
Definition at line 209 of file KChartLayoutItems.cpp.
◆ boundingPolygon()
| QPolygon KChart::TextLayoutItem::boundingPolygon | ( | ) | const |
Definition at line 352 of file KChartLayoutItems.cpp.
◆ expandingDirections()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 258 of file KChartLayoutItems.cpp.
◆ geometry()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 263 of file KChartLayoutItems.cpp.
◆ intersects() [1/2]
|
virtual |
Definition at line 363 of file KChartLayoutItems.cpp.
◆ intersects() [2/2]
|
virtual |
Definition at line 358 of file KChartLayoutItems.cpp.
◆ isEmpty()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 268 of file KChartLayoutItems.cpp.
◆ marginWidth()
|
virtual |
Definition at line 407 of file KChartLayoutItems.cpp.
◆ maximumSize()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 273 of file KChartLayoutItems.cpp.
◆ minimumSize()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 278 of file KChartLayoutItems.cpp.
◆ paint()
|
overridevirtual |
Implements KChart::AbstractLayoutItem.
Definition at line 450 of file KChartLayoutItems.cpp.
◆ realFont()
|
virtual |
Definition at line 346 of file KChartLayoutItems.cpp.
◆ realFontSize()
|
virtual |
Definition at line 329 of file KChartLayoutItems.cpp.
◆ setAutoReferenceArea()
| void KChart::TextLayoutItem::setAutoReferenceArea | ( | const QObject * | area | ) |
Definition at line 202 of file KChartLayoutItems.cpp.
◆ setGeometry()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 283 of file KChartLayoutItems.cpp.
◆ setText()
| void KChart::TextLayoutItem::setText | ( | const QString & | text | ) |
Definition at line 214 of file KChartLayoutItems.cpp.
◆ setTextAlignment()
| void KChart::TextLayoutItem::setTextAlignment | ( | Qt::Alignment | alignment | ) |
Definition at line 228 of file KChartLayoutItems.cpp.
◆ setTextAttributes()
| void KChart::TextLayoutItem::setTextAttributes | ( | const TextAttributes & | a | ) |
Use this to specify the text attributes to be used for this item.
- See also
- textAttributes
Definition at line 242 of file KChartLayoutItems.cpp.
◆ sizeHint()
|
overridevirtual |
pure virtual in QLayoutItem
Implements QLayoutItem.
Definition at line 371 of file KChartLayoutItems.cpp.
◆ sizeHintUnrotated()
|
virtual |
Definition at line 385 of file KChartLayoutItems.cpp.
◆ text()
| QString KChart::TextLayoutItem::text | ( | ) | const |
Definition at line 223 of file KChartLayoutItems.cpp.
◆ textAlignment()
| Qt::Alignment KChart::TextLayoutItem::textAlignment | ( | ) | const |
Definition at line 237 of file KChartLayoutItems.cpp.
◆ textAttributes()
| KChart::TextAttributes KChart::TextLayoutItem::textAttributes | ( | ) | const |
Returns the text attributes to be used for this item.
- See also
- setTextAttributes
Definition at line 252 of file KChartLayoutItems.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:54:25 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
Public Member Functions inherited from