Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsThemeData Class Reference

#include <qwindowsthemedata_p.h>

+ Collaboration diagram for QWindowsThemeData:

Public Member Functions

 QWindowsThemeData (const QWidget *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0, const QRect &r=QRect())
 
HRGN mask (QWidget *widget)
 
HTHEME handle ()
 
bool isValid ()
 
QSizeF size ()
 
QMarginsF margins (const QRect &rect, int propId=TMT_CONTENTMARGINS)
 
QMarginsF margins (int propId=TMT_CONTENTMARGINS)
 

Static Public Member Functions

static QSizeF themeSize (const QWidget *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0)
 
static RECT toRECT (const QRect &qr)
 

Public Attributes

const QWidgetwidget
 
QPainterpainter
 
int theme
 
HTHEME htheme = nullptr
 
int partId
 
int stateId
 
uint mirrorHorizontally: 1
 
uint mirrorVertically: 1
 
uint noBorder: 1
 
uint noContent: 1
 
uint invertPixels: 1
 
uint rotate = 0
 
QRect rect
 

Detailed Description

Definition at line 53 of file qwindowsthemedata_p.h.

Constructor & Destructor Documentation

◆ QWindowsThemeData()

QWindowsThemeData::QWindowsThemeData ( const QWidget w = nullptr,
QPainter p = nullptr,
int  themeIn = -1,
int  part = 0,
int  state = 0,
const QRect r = QRect() 
)
inlineexplicit

Definition at line 56 of file qwindowsthemedata_p.h.

Member Function Documentation

◆ handle()

HTHEME QWindowsThemeData::handle ( )

Definition at line 20 of file qwindowsthemedata.cpp.

References QWindowsVistaStylePrivate::createTheme(), htheme, theme, QWindowsVistaStylePrivate::useVista(), widget, and QWindowsVistaStylePrivate::winId().

Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly(), QWindowsVistaStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), QWindowsVistaStyle::drawPrimitive(), QWindowsVistaStylePrivate::isTransparent(), isValid(), margins(), margins(), mask(), QWindowsVistaStyle::polish(), QWindowsVistaStylePrivate::region(), and size().

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

◆ isValid()

bool QWindowsThemeData::isValid ( )

Definition at line 10 of file qwindowsthemedata.cpp.

References handle(), theme, and QWindowsVistaStylePrivate::useVista().

Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), QWindowsVistaStyle::drawPrimitive(), margins(), margins(), size(), QWindowsVistaStyle::sizeFromContents(), QWindowsVistaStyle::standardIcon(), QWindowsVistaStyle::standardPixmap(), and QWindowsVistaStyle::subElementRect().

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

◆ margins() [1/2]

QMarginsF QWindowsThemeData::margins ( const QRect rect,
int  propId = TMT_CONTENTMARGINS 
)
inline

Definition at line 160 of file qwindowsthemedata_p.h.

References handle(), isValid(), margins(), partId, rect, stateId, and toRECT().

Referenced by QWindowsVistaStyle::drawControl(), margins(), margins(), and QWindowsVistaStyle::sizeFromContents().

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

◆ margins() [2/2]

QMarginsF QWindowsThemeData::margins ( int  propId = TMT_CONTENTMARGINS)
inline

Definition at line 172 of file qwindowsthemedata_p.h.

References handle(), isValid(), margins(), partId, and stateId.

+ Here is the call graph for this function:

◆ mask()

HRGN QWindowsThemeData::mask ( QWidget widget)

Definition at line 47 of file qwindowsthemedata.cpp.

References handle(), QWindowsVistaStylePrivate::hdcForWidgetBackingStore(), partId, rect, stateId, toRECT(), and widget.

+ Here is the call graph for this function:

◆ size()

QSizeF QWindowsThemeData::size ( )
inline

Definition at line 143 of file qwindowsthemedata_p.h.

References handle(), isValid(), partId, size(), SIZE, and stateId.

Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), QWindowsVistaStyle::drawPrimitive(), size(), QWindowsVistaStyle::sizeFromContents(), QWindowsVistaStyle::standardIcon(), QWindowsVistaStyle::standardPixmap(), and QWindowsVistaStyle::subElementRect().

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

◆ themeSize()

QSizeF QWindowsThemeData::themeSize ( const QWidget w = nullptr,
QPainter p = nullptr,
int  themeIn = -1,
int  part = 0,
int  state = 0 
)
inlinestatic

Definition at line 154 of file qwindowsthemedata_p.h.

References state, and theme.

Referenced by QWindowsVistaStylePrivate::pixelMetricFromSystemDp().

+ Here is the caller graph for this function:

◆ toRECT()

RECT QWindowsThemeData::toRECT ( const QRect qr)
static

Definition at line 33 of file qwindowsthemedata.cpp.

References QRect::height(), QRect::width(), QRect::x(), and QRect::y().

Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly(), QWindowsVistaStylePrivate::drawBackgroundThruNativeBuffer(), margins(), mask(), and QWindowsVistaStylePrivate::region().

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

Member Data Documentation

◆ htheme

HTHEME QWindowsThemeData::htheme = nullptr

Definition at line 79 of file qwindowsthemedata_p.h.

Referenced by handle().

◆ invertPixels

uint QWindowsThemeData::invertPixels

◆ mirrorHorizontally

◆ mirrorVertically

◆ noBorder

◆ noContent

◆ painter

◆ partId

◆ rect

◆ rotate

◆ stateId

◆ theme

int QWindowsThemeData::theme

◆ widget

const QWidget* QWindowsThemeData::widget

The documentation for this class was generated from the following files: