Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcolormap_x11.cpp File Reference
#include <QVarLengthArray>
#include <private/qguiapplication_p.h>
#include "qcolormap_x11_p.h"
#include "qxcbnativepainting.h"
#include "qt_x11_p.h"
+ Include dependency graph for qcolormap_x11.cpp:

Go to the source code of this file.

Classes

class  QXcbColormapPrivate
 

Functions

static uint right_align (uint v)
 
static int cube_root (int v)
 
static Visual * find_visual (Display *display, int screen, int visual_class, int visual_id, int *depth, bool *defaultVisual)
 
static void query_colormap (QXcbColormapPrivate *d, int screen)
 
static void init_gray (QXcbColormapPrivate *d, int screen)
 
static void init_indexed (QXcbColormapPrivate *d, int screen)
 
static void init_direct (QXcbColormapPrivate *d, bool ownColormap)
 

Variables

static QXcbColormap ** cmaps = nullptr
 

Function Documentation

◆ cube_root()

static int cube_root ( int  v)
static

Definition at line 55 of file qcolormap_x11.cpp.

References i.

Referenced by QXcbColormap::initialize().

+ Here is the caller graph for this function:

◆ find_visual()

static Visual * find_visual ( Display display,
int  screen,
int  visual_class,
int  visual_id,
int *  depth,
bool *  defaultVisual 
)
static

Definition at line 73 of file qcolormap_x11.cpp.

References screen.

Referenced by QXcbColormap::initialize().

+ Here is the caller graph for this function:

◆ init_direct()

static void init_direct ( QXcbColormapPrivate d,
bool  ownColormap 
)
static

Definition at line 253 of file qcolormap_x11.cpp.

References QVarLengthArray< T, Prealloc >::count(), d, QVarLengthArray< T, Prealloc >::data(), i, and X11.

Referenced by QXcbColormap::initialize().

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

◆ init_gray()

static void init_gray ( QXcbColormapPrivate d,
int  screen 
)
static

Definition at line 197 of file qcolormap_x11.cpp.

References d, qBlue(), qGreen(), qRed(), QRgb, qRgb(), query_colormap(), rgb, screen, and X11.

Referenced by QXcbColormap::initialize().

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

◆ init_indexed()

static void init_indexed ( QXcbColormapPrivate d,
int  screen 
)
static

Definition at line 222 of file qcolormap_x11.cpp.

References d, qBlue(), qGreen(), qRed(), QRgb, qRgb(), query_colormap(), rgb, screen, and X11.

Referenced by QXcbColormap::initialize().

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

◆ query_colormap()

static void query_colormap ( QXcbColormapPrivate d,
int  screen 
)
static

Definition at line 117 of file qcolormap_x11.cpp.

References d, dist(), QColor::fromRgbF(), QXcbColormap::Indexed, Q_ASSERT, qBlue(), qGray(), qGreen(), qRed(), QRgb, qRgb(), red, rgb, screen, and X11.

Referenced by init_gray(), and init_indexed().

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

◆ right_align()

static uint right_align ( uint  v)
static

Definition at line 48 of file qcolormap_x11.cpp.

Referenced by QXcbColormap::initialize().

+ Here is the caller graph for this function:

Variable Documentation

◆ cmaps