Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 67 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 70 of file qquickwindowsxpstyle_p_p.h.

References XPThemeData(), painter, partId, stateId, and theme.

Referenced by XPThemeData().

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

Member Function Documentation

◆ handle()

HTHEME QQC2::XPThemeData::handle ( )

Definition at line 56 of file qquickwindowsxpstyle.cpp.

References QQC2::QWindowsXPStylePrivate::useXP().

Here is the call graph for this function:

◆ isValid()

bool QQC2::XPThemeData::isValid ( )

Definition at line 45 of file qquickwindowsxpstyle.cpp.

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

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 266 of file qquickwindowsxpstyle_p_p.h.

References isValid().

Here is the call graph for this function:

◆ margins() [2/2]

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

Definition at line 278 of file qquickwindowsxpstyle_p_p.h.

References isValid().

Here is the call graph for this function:

◆ size()

QSizeF QQC2::XPThemeData::size ( )
inline

Definition at line 255 of file qquickwindowsxpstyle_p_p.h.

References isValid().

Here is the call 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 295 of file qquickwindowsxpstyle_p_p.h.

◆ 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 302 of file qquickwindowsxpstyle_p_p.h.

◆ 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 289 of file qquickwindowsxpstyle_p_p.h.

◆ toRECT()

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

Definition at line 69 of file qquickwindowsxpstyle.cpp.

Member Data Documentation

◆ htheme

HTHEME QQC2::XPThemeData::htheme = nullptr

Definition at line 96 of file qquickwindowsxpstyle_p_p.h.

◆ mirrorHorizontally

uint QQC2::XPThemeData::mirrorHorizontally

Definition at line 100 of file qquickwindowsxpstyle_p_p.h.

◆ mirrorVertically

uint QQC2::XPThemeData::mirrorVertically

Definition at line 101 of file qquickwindowsxpstyle_p_p.h.

◆ noBorder

uint QQC2::XPThemeData::noBorder

Definition at line 102 of file qquickwindowsxpstyle_p_p.h.

◆ noContent

uint QQC2::XPThemeData::noContent

Definition at line 103 of file qquickwindowsxpstyle_p_p.h.

◆ painter

◆ partId

◆ rect

QRect QQC2::XPThemeData::rect

Definition at line 105 of file qquickwindowsxpstyle_p_p.h.

◆ rotate

uint QQC2::XPThemeData::rotate = 0

Definition at line 104 of file qquickwindowsxpstyle_p_p.h.

◆ stateId

◆ theme

int QQC2::XPThemeData::theme

◆ window

const QWindow* QQC2::XPThemeData::window

Definition at line 92 of file qquickwindowsxpstyle_p_p.h.


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