Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcolormap_x11.cpp File Reference

(02de77535f2a94cbeb7e0ea01895ba4e556e165c)

#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()

int cube_root ( int v)
static

Definition at line 56 of file qcolormap_x11.cpp.

Referenced by QXcbColormap::initialize().

Here is the caller graph for this function:

◆ find_visual()

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

Definition at line 74 of file qcolormap_x11.cpp.

Referenced by QXcbColormap::initialize().

Here is the caller graph for this function:

◆ init_direct()

void init_direct ( QXcbColormapPrivate * d,
bool ownColormap )
static

Definition at line 254 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::b_max, QXcbColormapPrivate::g_max, QXcbColormapPrivate::r_max, and QXcbColormapPrivate::visual.

Referenced by QXcbColormap::initialize().

Here is the caller graph for this function:

◆ init_gray()

void init_gray ( QXcbColormapPrivate * d,
int screen )
static

Definition at line 198 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::colormap, QXcbX11Data::display, QXcbColormapPrivate::g_max, query_colormap(), QXcbColormapPrivate::r_max, and QXcbColormapPrivate::visual.

Referenced by QXcbColormap::initialize().

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

◆ init_indexed()

void init_indexed ( QXcbColormapPrivate * d,
int screen )
static

Definition at line 223 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::b_max, QXcbColormapPrivate::colormap, QXcbX11Data::display, QXcbColormapPrivate::g_max, query_colormap(), QXcbColormapPrivate::r_max, and QXcbColormapPrivate::visual.

Referenced by QXcbColormap::initialize().

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

◆ query_colormap()

void query_colormap ( QXcbColormapPrivate * d,
int screen )
static

Definition at line 118 of file qcolormap_x11.cpp.

References QXcbColormapPrivate::b_max, QXcbColormapPrivate::colormap, QXcbColormapPrivate::depth, QXcbX11Data::display, QXcbColormapPrivate::g_max, QXcbColormap::Indexed, QXcbColormapPrivate::mode, QXcbColormapPrivate::r_max, and QXcbColormapPrivate::visual.

Referenced by init_gray(), and init_indexed().

Here is the caller graph for this function:

◆ right_align()

uint right_align ( uint v)
static

Definition at line 49 of file qcolormap_x11.cpp.

Variable Documentation

◆ cmaps

QXcbColormap ** cmaps = nullptr
static