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
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::QWindowsXPStyle::drawComplexControl(), QQC2::QWindowsXPStyle::drawControl(), QQC2::QWindowsXPStyle::drawPrimitive(), isValid(), margins(), margins(), and size().

+ 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::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(), and QQC2::QWindowsXPStylePrivate::scrollBarGripperBounds().

+ 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.

Referenced by margins().

+ 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

uint QQC2::XPThemeData::mirrorVertically

◆ noBorder

uint QQC2::XPThemeData::noBorder

Definition at line 101 of file qquickwindowsxpstyle_p_p.h.

Referenced by QQC2::QWindowsXPStyle::drawPrimitive().

◆ noContent

uint QQC2::XPThemeData::noContent

Definition at line 102 of file qquickwindowsxpstyle_p_p.h.

Referenced by QQC2::QWindowsXPStyle::drawPrimitive().

◆ painter

QPainter* QQC2::XPThemeData::painter

Definition at line 92 of file qquickwindowsxpstyle_p_p.h.

Referenced by QQC2::QWindowsXPStyle::standardIcon().

◆ partId

◆ rect

◆ rotate

uint QQC2::XPThemeData::rotate = 0

◆ stateId

◆ theme

int QQC2::XPThemeData::theme

Definition at line 94 of file qquickwindowsxpstyle_p_p.h.

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

◆ window

const QWindow* QQC2::XPThemeData::window

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