Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QColormap Class Reference

#include <qcolormap.h>

+ Collaboration diagram for QColormap:

Public Types

enum  Mode { Direct , Indexed , Gray }
 

Public Member Functions

 QColormap (const QColormap &colormap)
 
 ~QColormap ()
 
QColormapoperator= (const QColormap &colormap)
 
Mode mode () const
 
int depth () const
 
int size () const
 
uint pixel (const QColor &color) const
 
const QColor colorAt (uint pixel) const
 
const QList< QColorcolormap () const
 

Static Public Member Functions

static void initialize ()
 
static void cleanup ()
 
static QColormap instance (int screen=-1)
 

Detailed Description

Definition at line 19 of file qcolormap.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Direct 
Indexed 
Gray 

Definition at line 22 of file qcolormap.h.

Constructor & Destructor Documentation

◆ QColormap()

QColormap::QColormap ( const QColormap & colormap)

Definition at line 62 of file qcolormap.cpp.

References QColormap(), QBasicAtomicInteger< T >::ref(), and QColormapPrivate::ref.

Referenced by QColormap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~QColormap()

QColormap::~QColormap ( )

Definition at line 66 of file qcolormap.cpp.

References QBasicAtomicInteger< T >::deref(), and QColormapPrivate::ref.

+ Here is the call graph for this function:

Member Function Documentation

◆ cleanup()

void QColormap::cleanup ( )
static

Definition at line 47 of file qcolormap.cpp.

References screenMap.

Referenced by QApplication::~QApplication().

+ Here is the caller graph for this function:

◆ colorAt()

const QColor QColormap::colorAt ( uint pixel) const

Definition at line 152 of file qcolormap.cpp.

References QColormapPrivate::depth, Direct, QColormapPrivate::mode, pixel(), Q_ASSERT_X, and qt_conv16ToRgb().

+ Here is the call graph for this function:

◆ colormap()

const QList< QColor > QColormap::colormap ( ) const

Definition at line 174 of file qcolormap.cpp.

Referenced by operator=().

+ Here is the caller graph for this function:

◆ depth()

int QColormap::depth ( ) const

Definition at line 76 of file qcolormap.cpp.

References QColormapPrivate::depth.

◆ initialize()

void QColormap::initialize ( )
static

Definition at line 28 of file qcolormap.cpp.

References QScreen::depth, Direct, Indexed, QGuiApplication::primaryScreen, Q_UNLIKELY, qWarning, and screenMap.

Referenced by QApplicationPrivate::init().

+ Here is the caller graph for this function:

◆ instance()

QColormap QColormap::instance ( int screen = -1)
static

Definition at line 53 of file qcolormap.cpp.

Referenced by QApplication::isEffectEnabled().

+ Here is the caller graph for this function:

◆ mode()

QColormap::Mode QColormap::mode ( ) const

Definition at line 72 of file qcolormap.cpp.

References QColormapPrivate::mode.

◆ operator=()

QColormap & QColormap::operator= ( const QColormap & colormap)

Definition at line 179 of file qcolormap.cpp.

References colormap(), and qAtomicAssign().

+ Here is the call graph for this function:

◆ pixel()

uint QColormap::pixel ( const QColor & color) const

Definition at line 123 of file qcolormap.cpp.

References QColormapPrivate::depth, Direct, QColormapPrivate::mode, qBlue(), qGreen(), qRed(), QRgb, qt_convRgbTo16(), rgb, and tr.

Referenced by colorAt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

int QColormap::size ( ) const

Definition at line 80 of file qcolormap.cpp.

References QColormapPrivate::numcolors.


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