KChart::TextLayoutItem

Search for usage in LXR

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 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)
 
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 () const const
 

Additional Inherited Members

- Protected Attributes inherited from KChart::AbstractLayoutItem
QWidgetmParent
 
QLayoutmParentLayout
 

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()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 258 of file KChartLayoutItems.cpp.

◆ geometry()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 263 of file KChartLayoutItems.cpp.

◆ intersects() [1/2]

bool KChart::TextLayoutItem::intersects ( const TextLayoutItem & other,
const QPoint & myPos,
const QPoint & otherPos ) const
virtual

Definition at line 363 of file KChartLayoutItems.cpp.

◆ intersects() [2/2]

bool KChart::TextLayoutItem::intersects ( const TextLayoutItem & other,
const QPointF & myPos,
const QPointF & otherPos ) const
virtual

Definition at line 358 of file KChartLayoutItems.cpp.

◆ isEmpty()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 268 of file KChartLayoutItems.cpp.

◆ marginWidth()

int KChart::TextLayoutItem::marginWidth ( ) const
virtual

Definition at line 407 of file KChartLayoutItems.cpp.

◆ maximumSize()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 273 of file KChartLayoutItems.cpp.

◆ minimumSize()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 278 of file KChartLayoutItems.cpp.

◆ paint()

void KChart::TextLayoutItem::paint ( QPainter * painter)
overridevirtual

Implements KChart::AbstractLayoutItem.

Definition at line 450 of file KChartLayoutItems.cpp.

◆ realFont()

QFont KChart::TextLayoutItem::realFont ( ) const
virtual

Definition at line 346 of file KChartLayoutItems.cpp.

◆ realFontSize()

qreal KChart::TextLayoutItem::realFontSize ( ) const
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()

void KChart::TextLayoutItem::setGeometry ( const QRect & r)
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()

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

pure virtual in QLayoutItem

Implements QLayoutItem.

Definition at line 371 of file KChartLayoutItems.cpp.

◆ sizeHintUnrotated()

QSize KChart::TextLayoutItem::sizeHintUnrotated ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:52:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.