KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
KDChart::BackgroundAttributes Class Reference

#include <KDChartBackgroundAttributes.h>

Public Types

enum  BackgroundPixmapMode { BackgroundPixmapModeNone , BackgroundPixmapModeCentered , BackgroundPixmapModeScaled , BackgroundPixmapModeStretched }
 

Public Member Functions

 BackgroundAttributes ()
 
 BackgroundAttributes (const BackgroundAttributes &)
 
 ~BackgroundAttributes ()
 
QBrush brush () const
 
bool isEqualTo (const BackgroundAttributes &other, bool ignorePixmap=false) const
 
bool isVisible () const
 
bool operator!= (const BackgroundAttributes &other) const
 
BackgroundAttributesoperator= (const BackgroundAttributes &)
 
bool operator== (const BackgroundAttributes &) const
 
QPixmap pixmap () const
 
BackgroundPixmapMode pixmapMode () const
 
void setBrush (const QBrush &brush)
 
void setPixmap (const QPixmap &backPixmap)
 
void setPixmapMode (BackgroundPixmapMode mode)
 
void setVisible (bool visible)
 

Detailed Description

Set of attributes usable for background pixmaps

Definition at line 24 of file KDChartBackgroundAttributes.h.

Member Enumeration Documentation

◆ BackgroundPixmapMode

Enumerator
BackgroundPixmapModeNone 
BackgroundPixmapModeCentered 
BackgroundPixmapModeScaled 
BackgroundPixmapModeStretched 

Definition at line 33 of file KDChartBackgroundAttributes.h.

Constructor & Destructor Documentation

◆ BackgroundAttributes() [1/2]

BackgroundAttributes::BackgroundAttributes ( )

Definition at line 38 of file KDChartBackgroundAttributes.cpp.

◆ BackgroundAttributes() [2/2]

BackgroundAttributes::BackgroundAttributes ( const BackgroundAttributes r)

Definition at line 43 of file KDChartBackgroundAttributes.cpp.

◆ ~BackgroundAttributes()

BackgroundAttributes::~BackgroundAttributes ( )

Definition at line 77 of file KDChartBackgroundAttributes.cpp.

Member Function Documentation

◆ brush()

QBrush BackgroundAttributes::brush ( ) const

◆ isEqualTo()

bool BackgroundAttributes::isEqualTo ( const BackgroundAttributes other,
bool  ignorePixmap = false 
) const

Definition at line 63 of file KDChartBackgroundAttributes.cpp.

References brush(), QPixmap::cacheKey(), isVisible(), pixmap(), and pixmapMode().

Referenced by operator==().

◆ isVisible()

bool BackgroundAttributes::isVisible ( ) const

◆ operator!=()

bool KDChart::BackgroundAttributes::operator!= ( const BackgroundAttributes other) const
inline

Definition at line 54 of file KDChartBackgroundAttributes.h.

References KDChart::operator==().

◆ operator=()

BackgroundAttributes & BackgroundAttributes::operator= ( const BackgroundAttributes r)

Definition at line 48 of file KDChartBackgroundAttributes.cpp.

References d.

◆ operator==()

bool BackgroundAttributes::operator== ( const BackgroundAttributes r) const

Definition at line 58 of file KDChartBackgroundAttributes.cpp.

References isEqualTo().

◆ pixmap()

QPixmap BackgroundAttributes::pixmap ( ) const

◆ pixmapMode()

BackgroundAttributes::BackgroundPixmapMode BackgroundAttributes::pixmapMode ( ) const

◆ setBrush()

void BackgroundAttributes::setBrush ( const QBrush brush)

Definition at line 93 of file KDChartBackgroundAttributes.cpp.

References brush(), and d.

◆ setPixmap()

void BackgroundAttributes::setPixmap ( const QPixmap backPixmap)

Definition at line 113 of file KDChartBackgroundAttributes.cpp.

References d.

◆ setPixmapMode()

void BackgroundAttributes::setPixmapMode ( BackgroundPixmapMode  mode)

Definition at line 103 of file KDChartBackgroundAttributes.cpp.

References d.

◆ setVisible()

void BackgroundAttributes::setVisible ( bool  visible)

Definition at line 83 of file KDChartBackgroundAttributes.cpp.

References d.


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Fri Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8