KChart::Measure
#include <KChartMeasure>
Public Member Functions | |
Measure (const Measure &) | |
Measure (qreal value, KChartEnums::MeasureCalculationMode mode=KChartEnums::MeasureCalculationModeAuto, KChartEnums::MeasureOrientation orientation=KChartEnums::MeasureOrientationAuto) | |
qreal | calculatedValue (const QObject *autoArea, KChartEnums::MeasureOrientation autoOrientation) const |
qreal | calculatedValue (const QSizeF &autoSize, KChartEnums::MeasureOrientation autoOrientation) const |
KChartEnums::MeasureCalculationMode | calculationMode () const |
bool | operator!= (const Measure &other) const |
Measure & | operator= (const Measure &) |
bool | operator== (const Measure &) const |
const QObject * | referenceArea () const |
KChartEnums::MeasureOrientation | referenceOrientation () const |
void | setAbsoluteValue (qreal val) |
void | setCalculationMode (KChartEnums::MeasureCalculationMode mode) |
void | setReferenceArea (const QObject *area) |
void | setReferenceOrientation (KChartEnums::MeasureOrientation orientation) |
void | setRelativeMode (const QObject *area, KChartEnums::MeasureOrientation orientation) |
void | setValue (qreal val) |
const QSizeF | sizeOfArea (const QObject *area) const |
qreal | value () const |
Detailed Description
Measure is used to specify relative and absolute sizes in KChart, e.g. font sizes.
Definition at line 37 of file KChartMeasure.h.
Member Function Documentation
◆ calculatedValue()
qreal KChart::Measure::calculatedValue | ( | const QObject * | autoArea, |
KChartEnums::MeasureOrientation | autoOrientation | ||
) | const |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.
Definition at line 121 of file KChartMeasure.cpp.
◆ referenceArea()
|
inline |
The returned reference area will be derived from AbstractArea or QWidget or both.
Definition at line 90 of file KChartMeasure.h.
◆ setAbsoluteValue()
|
inline |
\brief This is a convenience method for specifying a value, implicitly setting the calculation mode to MeasureCalculationModeAbsolute. Calling setAbsoluteValue( value ) is the same as calling
setValue( value ); setCalculationMode( KChartEnums::MeasureCalculationModeAbsolute );
Definition at line 75 of file KChartMeasure.h.
◆ setReferenceArea()
|
inline |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.
Definition at line 85 of file KChartMeasure.h.
◆ setRelativeMode()
|
inline |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.
Definition at line 57 of file KChartMeasure.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 03:54:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.