Qt 4.8
|
#include "qwindowsxpstyle.h"
#include "qwindowsxpstyle_p.h"
#include <private/qobject_p.h>
#include <private/qpaintengine_raster_p.h>
#include <private/qapplication_p.h>
#include <private/qstylehelper_p.h>
#include <private/qwidget_p.h>
#include <private/qsystemlibrary_p.h>
#include <qpainter.h>
#include <qpaintengine.h>
#include <qwidget.h>
#include <qapplication.h>
#include <qpixmapcache.h>
#include <qdesktopwidget.h>
#include <qtoolbutton.h>
#include <qtabbar.h>
#include <qcombobox.h>
#include <qscrollbar.h>
#include <qheaderview.h>
#include <qspinbox.h>
#include <qlistview.h>
#include <qstackedwidget.h>
#include <qpushbutton.h>
#include <qtoolbar.h>
#include <qlabel.h>
#include <qvarlengtharray.h>
#include <qdebug.h>
Go to the source code of this file.
Typedefs | |
typedef HRESULT(WINAPI * | PtrCloseThemeData) (HTHEME hTheme) |
typedef HRESULT(WINAPI * | PtrDrawThemeBackground) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect) |
typedef HRESULT(WINAPI * | PtrDrawThemeBackgroundEx) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const DTBGOPTS *pOptions) |
typedef HRESULT(WINAPI * | PtrGetCurrentThemeName) (OUT LPWSTR pszThemeFileName, int cchMaxNameChars, OUT OPTIONAL LPWSTR pszColorBuff, int cchMaxColorChars, OUT OPTIONAL LPWSTR pszSizeBuff, int cchMaxSizeChars) |
typedef HRESULT(WINAPI * | PtrGetThemeBackgroundRegion) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, const RECT *pRect, OUT HRGN *pRegion) |
typedef HRESULT(WINAPI * | PtrGetThemeBool) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT BOOL *pfVal) |
typedef HRESULT(WINAPI * | PtrGetThemeColor) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT COLORREF *pColor) |
typedef HRESULT(WINAPI * | PtrGetThemeDocumentationProperty) (LPCWSTR pszThemeName, LPCWSTR pszPropertyName, OUT LPWSTR pszValueBuff, int cchMaxValChars) |
typedef HRESULT(WINAPI * | PtrGetThemeEnumValue) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
typedef HRESULT(WINAPI * | PtrGetThemeFilename) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT LPWSTR pszThemeFileName, int cchMaxBuffChars) |
typedef HRESULT(WINAPI * | PtrGetThemeFont) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OUT LOGFONT *pFont) |
typedef HRESULT(WINAPI * | PtrGetThemeInt) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
typedef HRESULT(WINAPI * | PtrGetThemeIntList) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT INTLIST *pIntList) |
typedef HRESULT(WINAPI * | PtrGetThemeMargins) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OPTIONAL RECT *prc, OUT MARGINS *pMargins) |
typedef HRESULT(WINAPI * | PtrGetThemeMetric) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
typedef HRESULT(WINAPI * | PtrGetThemePartSize) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, OPTIONAL RECT *prc, enum THEMESIZE eSize, OUT SIZE *psz) |
typedef HRESULT(WINAPI * | PtrGetThemePosition) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT POINT *pPoint) |
typedef HRESULT(WINAPI * | PtrGetThemePropertyOrigin) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT enum PROPERTYORIGIN *pOrigin) |
typedef HRESULT(WINAPI * | PtrGetThemeRect) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT RECT *pRect) |
typedef HRESULT(WINAPI * | PtrGetThemeString) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT LPWSTR pszBuff, int cchMaxBuffChars) |
typedef bool(WINAPI * | PtrIsAppThemed) () |
typedef bool(WINAPI * | PtrIsThemeActive) () |
typedef BOOL(WINAPI * | PtrIsThemeBackgroundPartiallyTransparent) (HTHEME hTheme, int iPartId, int iStateId) |
typedef HTHEME(WINAPI * | PtrOpenThemeData) (HWND hwnd, LPCWSTR pszClassList) |
Functions | |
static bool | buttonVisible (const QStyle::SubControl sc, const QStyleOptionTitleBar *tb) |
QRegion | qt_region_from_HRGN (HRGN rgn) |
Q_GUI_EXPORT HDC | qt_win_display_dc () |
typedef HRESULT(WINAPI * PtrCloseThemeData) (HTHEME hTheme) |
Definition at line 80 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrDrawThemeBackground) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect) |
Definition at line 81 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrDrawThemeBackgroundEx) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const DTBGOPTS *pOptions) |
Definition at line 82 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetCurrentThemeName) (OUT LPWSTR pszThemeFileName, int cchMaxNameChars, OUT OPTIONAL LPWSTR pszColorBuff, int cchMaxColorChars, OUT OPTIONAL LPWSTR pszSizeBuff, int cchMaxSizeChars) |
Definition at line 83 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeBackgroundRegion) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, const RECT *pRect, OUT HRGN *pRegion) |
Definition at line 99 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeBool) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT BOOL *pfVal) |
Definition at line 85 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeColor) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT COLORREF *pColor) |
Definition at line 86 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeDocumentationProperty) (LPCWSTR pszThemeName, LPCWSTR pszPropertyName, OUT LPWSTR pszValueBuff, int cchMaxValChars) |
Definition at line 84 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeEnumValue) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
Definition at line 87 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeFilename) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT LPWSTR pszThemeFileName, int cchMaxBuffChars) |
Definition at line 88 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeFont) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OUT LOGFONT *pFont) |
Definition at line 89 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeInt) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
Definition at line 90 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeIntList) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT INTLIST *pIntList) |
Definition at line 91 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeMargins) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OPTIONAL RECT *prc, OUT MARGINS *pMargins) |
Definition at line 92 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeMetric) (HTHEME hTheme, OPTIONAL HDC hdc, int iPartId, int iStateId, int iPropId, OUT int *piVal) |
Definition at line 93 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemePartSize) (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, OPTIONAL RECT *prc, enum THEMESIZE eSize, OUT SIZE *psz) |
Definition at line 78 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemePosition) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT POINT *pPoint) |
Definition at line 95 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemePropertyOrigin) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT enum PROPERTYORIGIN *pOrigin) |
Definition at line 96 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeRect) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT RECT *pRect) |
Definition at line 97 of file qwindowsxpstyle.cpp.
typedef HRESULT(WINAPI * PtrGetThemeString) (HTHEME hTheme, int iPartId, int iStateId, int iPropId, OUT LPWSTR pszBuff, int cchMaxBuffChars) |
Definition at line 98 of file qwindowsxpstyle.cpp.
typedef bool(WINAPI * PtrIsAppThemed) () |
Definition at line 76 of file qwindowsxpstyle.cpp.
typedef bool(WINAPI * PtrIsThemeActive) () |
Definition at line 77 of file qwindowsxpstyle.cpp.
typedef BOOL(WINAPI * PtrIsThemeBackgroundPartiallyTransparent) (HTHEME hTheme, int iPartId, int iStateId) |
Definition at line 100 of file qwindowsxpstyle.cpp.
typedef HTHEME(WINAPI * PtrOpenThemeData) (HWND hwnd, LPCWSTR pszClassList) |
Definition at line 79 of file qwindowsxpstyle.cpp.
|
static |
Definition at line 3461 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::subControlRect().
QRegion qt_region_from_HRGN | ( | HRGN | rgn | ) |
Definition at line 80 of file qregion_win.cpp.
Referenced by QWindowsXPStylePrivate::region().
Q_GUI_EXPORT HDC qt_win_display_dc | ( | ) |
Definition at line 942 of file qapplication_win.cpp.
Referenced by QWindowsXPStylePrivate::buffer(), QWindowsXPStyle::drawComplexControl(), QRasterWindowSurface::flush(), QAxHostWidget::paintEvent(), and QWindowsXPStylePrivate::tabBody().
|
static |
Definition at line 105 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::cleanupHandleMap(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 106 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackgroundDirectly(), QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 107 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackground(), QWindowsXPStylePrivate::drawBackgroundDirectly(), QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 108 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawPrimitive(), QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 123 of file qwindowsxpstyle.cpp.
Referenced by XPThemeData::mask(), QWindowsXPStylePrivate::region(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 109 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 110 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsXPStyle::drawComplexControl(), QWindowsXPStyle::drawControl(), QWindowsXPStyle::drawPrimitive(), QWindowsXPStyle::polish(), QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 124 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 111 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsXPStyle::drawComplexControl(), QWindowsXPStyle::drawControl(), QWindowsXPStyle::drawPrimitive(), QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 112 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 113 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 114 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::drawBackgroundDirectly(), QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 115 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 116 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawComplexControl(), QWindowsXPStyle::QWindowsXPStyle(), QWindowsXPStylePrivate::resolveSymbols(), QWindowsXPStyle::sizeFromContents(), and QWindowsXPStyle::subElementRect().
|
static |
Definition at line 117 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 118 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawComplexControl(), QWindowsXPStyle::drawControl(), QWindowsXPStyle::pixelMetric(), QWindowsXPStyle::QWindowsXPStyle(), QWindowsXPStylePrivate::resolveSymbols(), QWindowsXPStyle::standardIconImplementation(), QWindowsXPStyle::standardPixmap(), and QWindowsXPStylePrivate::tabBody().
|
static |
Definition at line 119 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
|
static |
Definition at line 121 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 122 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::QWindowsXPStyle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 102 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::resolveSymbols(), and QWindowsXPStylePrivate::useXP().
|
static |
Definition at line 103 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::resolveSymbols(), and QWindowsXPStylePrivate::useXP().
|
static |
Definition at line 125 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStylePrivate::isTransparent(), XPThemeData::mask(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 104 of file qwindowsxpstyle.cpp.
Referenced by XPThemeData::handle(), and QWindowsXPStylePrivate::resolveSymbols().
|
static |
Definition at line 131 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawControl().
|
static |
Definition at line 128 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawControl().
|
static |
Definition at line 129 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawControl(), and QWindowsXPStyle::sizeFromContents().
|
static |
Definition at line 130 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawControl().
|
static |
Definition at line 132 of file qwindowsxpstyle.cpp.
Referenced by QWindowsXPStyle::drawControl().