KChart::TextLayoutItem

KChart::TextLayoutItem Class Reference

#include <KChartLayoutItems.h>

Inheritance diagram for KChart::TextLayoutItem:

Public Member Functions

 TextLayoutItem (const QString &text, const TextAttributes &attributes, const QObject *autoReferenceArea, KChartEnums::MeasureOrientation autoReferenceOrientation, Qt::Alignment alignment=Qt::Alignment())
 
const QObjectautoReferenceArea () const
 
QPolygon boundingPolygon () const
 
Qt::Orientations expandingDirections () const override
 
QRect geometry () const override
 
virtual bool intersects (const TextLayoutItem &other, const QPointF &myPos, const QPointF &otherPos) const
 
virtual bool intersects (const TextLayoutItem &other, const QPoint &myPos, const QPoint &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)
 
QLayoutparentLayout ()
 
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 QLayoutlayout ()
 
virtual int minimumHeightForWidth (int w) const const
 
void setAlignment (Qt::Alignment alignment)
 
virtual QSpacerItemspacerItem ()
 
virtual QWidgetwidget ()
 

Additional Inherited Members

- Protected Attributes inherited from KChart::AbstractLayoutItem
QWidgetmParent
 
QLayoutmParentLayout
 

Detailed Description

Layout item showing a text.

Definition at line 114 of file KChartLayoutItems.h.

Member Function Documentation

Qt::Orientations KChart::TextLayoutItem::expandingDirections ( ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 270 of file KChartLayoutItems.cpp.

QRect KChart::TextLayoutItem::geometry ( ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 275 of file KChartLayoutItems.cpp.

bool KChart::TextLayoutItem::isEmpty ( ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 280 of file KChartLayoutItems.cpp.

QSize KChart::TextLayoutItem::maximumSize ( ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 285 of file KChartLayoutItems.cpp.

QSize KChart::TextLayoutItem::minimumSize ( ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 290 of file KChartLayoutItems.cpp.

void KChart::TextLayoutItem::setGeometry ( const QRect r)
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 295 of file KChartLayoutItems.cpp.

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 254 of file KChartLayoutItems.cpp.

QSize KChart::TextLayoutItem::sizeHint ( void  ) const
overridevirtual

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 383 of file KChartLayoutItems.cpp.

KChart::TextAttributes KChart::TextLayoutItem::textAttributes ( ) const

Returns the text attributes to be used for this item.

See also
setTextAttributes

Definition at line 264 of file KChartLayoutItems.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:38:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.