Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QQC2::XPThemeData Class Reference

#include <qquickwindowsxpstyle_p_p.h>

+ Collaboration diagram for QQC2::XPThemeData:

Public Member Functions

 XPThemeData (const QWindow *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0, const QRect &r=QRect())
 
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 RECT toRECT (const QRect &qr)
 
static QSizeF themeSize (const QWindow *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0)
 
static QMarginsF themeMargins (const QRect &rect, const QWindow *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0, int propId=TMT_CONTENTMARGINS)
 
static QMarginsF themeMargins (const QWindow *w=nullptr, QPainter *p=nullptr, int themeIn=-1, int part=0, int state=0, int propId=TMT_CONTENTMARGINS)
 

Public Attributes

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

Detailed Description

Definition at line 66 of file qquickwindowsxpstyle_p_p.h.

Constructor & Destructor Documentation

◆ XPThemeData()

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

Definition at line 69 of file qquickwindowsxpstyle_p_p.h.

Member Function Documentation

◆ handle()

HTHEME QQC2::XPThemeData::handle ( )

Definition at line 55 of file qquickwindowsxpstyle.cpp.

References QQC2::QWindowsXPStylePrivate::createTheme(), htheme, theme, QQC2::QWindowsXPStylePrivate::useXP(), window, and QQC2::QWindowsXPStylePrivate::winId().

Referenced by QQC2::QWindowsXPStylePrivate::drawBackgroundDirectly(), QQC2::QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QQC2::QWindowsXPStyle::drawComplexControl(), QQC2::QWindowsXPStyle::drawControl(), QQC2::QWindowsXPStyle::drawPrimitive(), QQC2::QWindowsXPStylePrivate::isTransparent(), isValid(), margins(), margins(), QQC2::QWindowsXPStylePrivate::region(), size(), and QQC2::QWindowsXPStyle::subElementRect().

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

◆ isValid()

bool QQC2::XPThemeData::isValid ( )

Definition at line 44 of file qquickwindowsxpstyle.cpp.

References handle(), theme, and QQC2::QWindowsXPStylePrivate::useXP().

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

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

◆ margins() [1/2]

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

Definition at line 265 of file qquickwindowsxpstyle_p_p.h.

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

Referenced by margins(), margins(), QQC2::QWindowsXPStylePrivate::scrollBarGripperBounds(), and QQC2::QWindowsXPStyle::sizeFromContents().

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

◆ margins() [2/2]

QMarginsF QQC2::XPThemeData::margins ( int  propId = TMT_CONTENTMARGINS)
inline

Definition at line 277 of file qquickwindowsxpstyle_p_p.h.

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

+ Here is the call graph for this function:

◆ size()

QSizeF QQC2::XPThemeData::size ( )
inline

Definition at line 254 of file qquickwindowsxpstyle_p_p.h.

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

Referenced by QQC2::QWindowsXPStyle::drawComplexControl(), QQC2::QWindowsXPStyle::drawControl(), QQC2::QWindowsXPStylePrivate::scrollBarGripperBounds(), size(), QQC2::QWindowsXPStyle::standardIcon(), and QQC2::QWindowsXPStyle::standardPixmap().

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

◆ themeMargins() [1/2]

QMarginsF QQC2::XPThemeData::themeMargins ( const QRect rect,
const QWindow w = nullptr,
QPainter p = nullptr,
int  themeIn = -1,
int  part = 0,
int  state = 0,
int  propId = TMT_CONTENTMARGINS 
)
inlinestatic

Definition at line 294 of file qquickwindowsxpstyle_p_p.h.

References rect, state, and theme.

◆ themeMargins() [2/2]

QMarginsF QQC2::XPThemeData::themeMargins ( const QWindow w = nullptr,
QPainter p = nullptr,
int  themeIn = -1,
int  part = 0,
int  state = 0,
int  propId = TMT_CONTENTMARGINS 
)
inlinestatic

Definition at line 301 of file qquickwindowsxpstyle_p_p.h.

References state, and theme.

◆ themeSize()

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

Definition at line 288 of file qquickwindowsxpstyle_p_p.h.

References state, and theme.

Referenced by QQC2::QWindowsXPStylePrivate::pixelMetricFromSystemDp().

+ Here is the caller graph for this function:

◆ toRECT()

RECT QQC2::XPThemeData::toRECT ( const QRect qr)
static

Definition at line 68 of file qquickwindowsxpstyle.cpp.

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

Referenced by QQC2::QWindowsXPStylePrivate::drawBackgroundDirectly(), QQC2::QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), margins(), and QQC2::QWindowsXPStylePrivate::region().

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

Member Data Documentation

◆ htheme

HTHEME QQC2::XPThemeData::htheme = nullptr

Definition at line 95 of file qquickwindowsxpstyle_p_p.h.

Referenced by handle().

◆ mirrorHorizontally

◆ mirrorVertically

◆ noBorder

◆ noContent

◆ painter

◆ partId

◆ rect

◆ rotate

◆ stateId

◆ theme

◆ window


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