Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), QWindowsVistaStyle::drawPrimitive(), isValid(), margins(), margins(), mask(), QWindowsVistaStyle::polish(), 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::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.

Referenced by margins(), and mask().

+ 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

Definition at line 87 of file qwindowsthemedata_p.h.

◆ mirrorHorizontally

uint QWindowsThemeData::mirrorHorizontally

◆ mirrorVertically

uint QWindowsThemeData::mirrorVertically

◆ noBorder

uint QWindowsThemeData::noBorder

Definition at line 85 of file qwindowsthemedata_p.h.

◆ noContent

uint QWindowsThemeData::noContent

Definition at line 86 of file qwindowsthemedata_p.h.

Referenced by QWindowsVistaStyle::drawPrimitive().

◆ painter

QPainter* QWindowsThemeData::painter

◆ partId

◆ rect

◆ rotate

uint QWindowsThemeData::rotate = 0

Definition at line 88 of file qwindowsthemedata_p.h.

Referenced by QWindowsVistaStyle::drawControl().

◆ stateId

◆ theme

int QWindowsThemeData::theme

Definition at line 78 of file qwindowsthemedata_p.h.

Referenced by handle(), isValid(), and themeSize().

◆ widget

const QWidget* QWindowsThemeData::widget

Definition at line 75 of file qwindowsthemedata_p.h.

Referenced by handle(), and mask().


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