Qt 4.8
Classes | Macros | Functions | Variables
qgl_wince.cpp File Reference
#include <qgl.h>
#include <qlist.h>
#include <qmap.h>
#include <qpixmap.h>
#include <qevent.h>
#include <private/qgl_p.h>
#include <qcolormap.h>
#include <qvarlengtharray.h>
#include <qdebug.h>
#include <qapplication.h>
#include <qdesktopwidget>
#include <windows.h>
#include <private/qeglproperties_p.h>
#include <private/qeglcontext_p.h>
#include <private/qgl_egl_p.h>
#include <qcolor.h>

Go to the source code of this file.

Classes

class  QGLCmap
 
class  QGLCmapPrivate
 
class  QGLTemporaryContextPrivate
 

Macros

#define QGLCMAP_H
 

Functions

static bool qLogEq (bool a, bool b)
 
static void qStoreColors (HPALETTE cmap, const QGLColormap &cols)
 

Variables

static bool opengl32dll = false
 

Macro Definition Documentation

◆ QGLCMAP_H

#define QGLCMAP_H

Definition at line 94 of file qgl_wince.cpp.

Function Documentation

◆ qLogEq()

static bool qLogEq ( bool  a,
bool  b 
)
static

Definition at line 198 of file qgl_wince.cpp.

199 {
200  return (((!a) && (!b)) || (a && b));
201 }
long ASN1_INTEGER_get ASN1_INTEGER * a

◆ qStoreColors()

static void qStoreColors ( HPALETTE  cmap,
const QGLColormap cols 
)
static

Definition at line 448 of file qgl_wince.cpp.

449 {
450  QRgb color;
451  PALETTEENTRY pe;
452 
453  for (int i = 0; i < cols.size(); i++) {
454  color = cols.entryRgb(i);
455  pe.peRed = qRed(color);
456  pe.peGreen = qGreen(color);
457  pe.peBlue = qBlue(color);
458  pe.peFlags = 0;
459 
460  SetPaletteEntries(cmap, i, 1, &pe);
461  }
462 }
unsigned int QRgb
Definition: qrgb.h:53
int size() const
Returns the number of colorcells in the colormap.
static QColor cmap[256]
Definition: qgl_mac.mm:760
int qRed(QRgb rgb)
Returns the red component of the ARGB quadruplet rgb.
Definition: qrgb.h:57
QRgb entryRgb(int idx) const
Returns the QRgb value in the colorcell with index idx.
int qGreen(QRgb rgb)
Returns the green component of the ARGB quadruplet rgb.
Definition: qrgb.h:60
int qBlue(QRgb rgb)
Returns the blue component of the ARGB quadruplet rgb.
Definition: qrgb.h:63

Variable Documentation

◆ opengl32dll

bool opengl32dll = false
static

Definition at line 124 of file qgl_wince.cpp.