Qt 4.8
Classes | Macros | Typedefs | Enumerations | Functions
qwindowsxpstyle_p.h File Reference
#include "qwindowsxpstyle.h"
#include "qwindowsstyle_p.h"
#include <qmap.h>
#include <qt_windows.h>
#include <uxtheme.h>
#include <tmschema.h>
#include <limits.h>

Go to the source code of this file.

Classes

struct  _DTBGOPTS
 
class  QWindowsXPStylePrivate
 
struct  ThemeMapData
 
struct  ThemeMapKey
 
class  XPThemeData
 

Macros

#define BT_BORDERFILL   1
 
#define BT_IMAGEFILE   0
 
#define BT_NONE   2
 
#define CBS_INACTIVE   5
 
#define DTBG_CLIPRECT   0x00000001
 
#define DTBG_COMPUTINGREGION   0x00000010
 
#define DTBG_DRAWSOLID   0x00000002
 
#define DTBG_MIRRORDC   0x00000020
 
#define DTBG_OMITBORDER   0x00000004
 
#define DTBG_OMITCONTENT   0x00000008
 
#define GT_IMAGEGLYPH   1
 
#define GT_NONE   0
 
#define HBS_INACTIVE   5
 
#define MAXBS_INACTIVE   5
 
#define MINBS_INACTIVE   5
 
#define RBS_INACTIVE   5
 
#define TMT_BGTYPE   4001
 
#define TMT_BORDERCOLOR   3801
 
#define TMT_BORDERCOLORHINT   3822
 
#define TMT_BORDERONLY   2203
 
#define TMT_BORDERSIZE   2403
 
#define TMT_CAPTIONMARGINS   3603
 
#define TMT_CONTENTMARGINS   3602
 
#define TMT_FILLCOLOR   3802
 
#define TMT_GLYPHTYPE   4012
 
#define TMT_PROGRESSCHUNKSIZE   2411
 
#define TMT_SIZINGMARGINS   3601
 
#define TMT_TEXTCOLOR   3803
 
#define TMT_TEXTSHADOWCOLOR   3818
 
#define TMT_TEXTSHADOWTYPE   4010
 
#define TMT_TRANSPARENTCOLOR   3809
 
#define TST_NONE   0
 

Typedefs

typedef struct _DTBGOPTS DTBGOPTS
 
typedef struct _DTBGOPTSPDTBGOPTS
 

Enumerations

enum  AlphaChannelType { UnknownAlpha = -1, NoAlpha, MaskAlpha, RealAlpha }
 

Functions

bool operator== (const ThemeMapKey &k1, const ThemeMapKey &k2)
 
uint qHash (const ThemeMapKey &key)
 

Macro Definition Documentation

◆ BT_BORDERFILL

#define BT_BORDERFILL   1

Definition at line 157 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStyle::drawPrimitive().

◆ BT_IMAGEFILE

#define BT_IMAGEFILE   0

◆ BT_NONE

#define BT_NONE   2

Definition at line 160 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStyle::drawPrimitive().

◆ CBS_INACTIVE

#define CBS_INACTIVE   5

◆ DTBG_CLIPRECT

#define DTBG_CLIPRECT   0x00000001

◆ DTBG_COMPUTINGREGION

#define DTBG_COMPUTINGREGION   0x00000010

Definition at line 103 of file qwindowsxpstyle_p.h.

◆ DTBG_DRAWSOLID

#define DTBG_DRAWSOLID   0x00000002

Definition at line 94 of file qwindowsxpstyle_p.h.

◆ DTBG_MIRRORDC

#define DTBG_MIRRORDC   0x00000020

Definition at line 106 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStylePrivate::drawBackgroundDirectly().

◆ DTBG_OMITBORDER

#define DTBG_OMITBORDER   0x00000004

◆ DTBG_OMITCONTENT

#define DTBG_OMITCONTENT   0x00000008

◆ GT_IMAGEGLYPH

#define GT_IMAGEGLYPH   1

◆ GT_NONE

#define GT_NONE   0

◆ HBS_INACTIVE

#define HBS_INACTIVE   5

Definition at line 197 of file qwindowsxpstyle_p.h.

◆ MAXBS_INACTIVE

#define MAXBS_INACTIVE   5

◆ MINBS_INACTIVE

#define MINBS_INACTIVE   5

Definition at line 188 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStyle::drawComplexControl().

◆ RBS_INACTIVE

#define RBS_INACTIVE   5

◆ TMT_BGTYPE

#define TMT_BGTYPE   4001

◆ TMT_BORDERCOLOR

#define TMT_BORDERCOLOR   3801

Definition at line 151 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStyle::drawPrimitive().

◆ TMT_BORDERCOLORHINT

#define TMT_BORDERCOLORHINT   3822

Definition at line 121 of file qwindowsxpstyle_p.h.

◆ TMT_BORDERONLY

#define TMT_BORDERONLY   2203

◆ TMT_BORDERSIZE

#define TMT_BORDERSIZE   2403

◆ TMT_CAPTIONMARGINS

#define TMT_CAPTIONMARGINS   3603

◆ TMT_CONTENTMARGINS

#define TMT_CONTENTMARGINS   3602

Definition at line 136 of file qwindowsxpstyle_p.h.

◆ TMT_FILLCOLOR

#define TMT_FILLCOLOR   3802

◆ TMT_GLYPHTYPE

#define TMT_GLYPHTYPE   4012

◆ TMT_PROGRESSCHUNKSIZE

#define TMT_PROGRESSCHUNKSIZE   2411

Definition at line 166 of file qwindowsxpstyle_p.h.

◆ TMT_SIZINGMARGINS

#define TMT_SIZINGMARGINS   3601

Definition at line 139 of file qwindowsxpstyle_p.h.

◆ TMT_TEXTCOLOR

#define TMT_TEXTCOLOR   3803

Definition at line 118 of file qwindowsxpstyle_p.h.

Referenced by QWindowsXPStyle::polish(), and QWindowsVistaStyle::polish().

◆ TMT_TEXTSHADOWCOLOR

#define TMT_TEXTSHADOWCOLOR   3818

◆ TMT_TEXTSHADOWTYPE

#define TMT_TEXTSHADOWTYPE   4010

◆ TMT_TRANSPARENTCOLOR

#define TMT_TRANSPARENTCOLOR   3809

◆ TST_NONE

#define TST_NONE   0

Typedef Documentation

◆ DTBGOPTS

typedef struct _DTBGOPTS DTBGOPTS

◆ PDTBGOPTS

typedef struct _DTBGOPTS * PDTBGOPTS

Enumeration Type Documentation

◆ AlphaChannelType

Enumerator
UnknownAlpha 
NoAlpha 
MaskAlpha 
RealAlpha 

Definition at line 264 of file qwindowsxpstyle_p.h.

264  {
265  UnknownAlpha = -1, // Alpha of part & state not yet known
266  NoAlpha, // Totally opaque, no need to touch alpha (RGB)
267  MaskAlpha, // Alpha channel must be fixed (ARGB)
268  RealAlpha // Proper alpha values from Windows (ARGB_Premultiplied)
269 };

Function Documentation

◆ operator==()

bool operator== ( const ThemeMapKey k1,
const ThemeMapKey k2 
)
inline

Definition at line 257 of file qwindowsxpstyle_p.h.

258 {
259  return k1.name == k2.name
260  && k1.partId == k2.partId
261  && k1.stateId == k2.stateId;
262 }

◆ qHash()

uint qHash ( const ThemeMapKey key)
inline

Definition at line 254 of file qwindowsxpstyle_p.h.

255 { return qHash(key.name) ^ key.partId ^ key.stateId; }
uint qHash(const QUrl &url)
Definition: qurl.h:285