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
QXcbColormap Class Reference

#include <qcolormap_x11_p.h>

+ Collaboration diagram for QXcbColormap:

Public Types

enum  Mode { Direct , Indexed , Gray }
 

Public Member Functions

 QXcbColormap (const QXcbColormap &colormap)
 
 ~QXcbColormap ()
 
QXcbColormapoperator= (const QXcbColormap &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 QXcbColormap instance (int screen=-1)
 

Detailed Description

Definition at line 13 of file qcolormap_x11_p.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Direct 
Indexed 
Gray 

Definition at line 16 of file qcolormap_x11_p.h.

Constructor & Destructor Documentation

◆ QXcbColormap()

QXcbColormap::QXcbColormap ( const QXcbColormap & colormap)

Definition at line 547 of file qcolormap_x11.cpp.

References QXcbColormap(), QBasicAtomicInteger< T >::ref(), and QXcbColormapPrivate::ref.

Referenced by QXcbColormap().

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

◆ ~QXcbColormap()

QXcbColormap::~QXcbColormap ( )

Definition at line 551 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::colormap, QXcbColormapPrivate::defaultColormap, QBasicAtomicInteger< T >::deref(), QXcbColormapPrivate::ref, and X11.

+ Here is the call graph for this function:

Member Function Documentation

◆ cleanup()

void QXcbColormap::cleanup ( )
static

Definition at line 520 of file qcolormap_x11.cpp.

References cmaps, i, and X11.

◆ colorAt()

const QColor QXcbColormap::colorAt ( uint pixel) const

Definition at line 592 of file qcolormap_x11.cpp.

References QList< T >::at(), QXcbColormapPrivate::b_max, QXcbColormapPrivate::b_shift, QXcbColormapPrivate::colors, Direct, QXcbColormapPrivate::g_max, QXcbColormapPrivate::g_shift, QXcbColormapPrivate::mode, pixel(), Q_ASSERT, QXcbColormapPrivate::r_max, QXcbColormapPrivate::r_shift, QList< T >::size(), and QXcbColormapPrivate::visual.

+ Here is the call graph for this function:

◆ colormap()

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

Definition at line 605 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::colors.

Referenced by operator=().

+ Here is the caller graph for this function:

◆ depth()

int QXcbColormap::depth ( ) const

Definition at line 563 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::depth.

◆ initialize()

void QXcbColormap::initialize ( )
static

Definition at line 289 of file qcolormap_x11.cpp.

References cmaps, cube_root(), d, QScreen::depth, Direct, find_visual(), Gray, i, Indexed, init_direct(), init_gray(), init_indexed(), lowest_bit(), right_align(), screen, X11, and XGrayScale.

Referenced by qt_xcb_native_x11_info_init().

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

◆ instance()

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

Definition at line 533 of file qcolormap_x11.cpp.

References QXcbX11Info::appScreen(), cmaps, and screen.

Referenced by QX11PaintEngine::drawPixmap(), QX11PlatformPixmap::fill(), QX11PlatformPixmap::fromImage(), QX11PaintEngine::updateBrush(), and QX11PaintEngine::updatePen().

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

◆ mode()

QXcbColormap::Mode QXcbColormap::mode ( ) const

Definition at line 560 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::mode.

◆ operator=()

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

Definition at line 608 of file qcolormap_x11.cpp.

References colormap(), and qAtomicAssign().

+ Here is the call graph for this function:

◆ pixel()

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

Definition at line 575 of file qcolormap_x11.cpp.

References QList< T >::at(), QXcbColormapPrivate::b_max, QXcbColormapPrivate::b_shift, QRgba64::blue8(), Direct, QXcbColormapPrivate::g_max, QXcbColormapPrivate::g_shift, Gray, QRgba64::green8(), QXcbColormapPrivate::mode, QXcbColormapPrivate::pixels, QXcbColormapPrivate::r_max, QXcbColormapPrivate::r_shift, and QRgba64::red8().

Referenced by colorAt(), QX11PaintEngine::drawPixmap(), QX11PlatformPixmap::fromImage(), QX11PaintEngine::updateBrush(), and QX11PaintEngine::updatePen().

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

◆ size()

int QXcbColormap::size ( ) const

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