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
qwindowsvistastyle.cpp File Reference

(b3971d29c0291b9f69b12000c9158af5e0fb3edf)

#include "qwindowsvistastyle_p.h"
#include "qwindowsvistastyle_p_p.h"
#include "qwindowsvistaanimation_p.h"
#include <qoperatingsystemversion.h>
#include <qscreen.h>
#include <qstylehints.h>
#include <qwindow.h>
#include <private/qstyleanimation_p.h>
#include <private/qstylehelper_p.h>
#include <qpa/qplatformnativeinterface.h>
#include <private/qapplication_p.h>
#include <private/qsystemlibrary_p.h>
#include <private/qwindowsthemecache_p.h>
#include "qdrawutil.h"
#include <qbackingstore.h>
+ Include dependency graph for qwindowsvistastyle.cpp:

Go to the source code of this file.

Macros

#define TMT_CONTENTMARGINS   3602
 
#define TMT_SIZINGMARGINS   3601
 
#define LISS_NORMAL   1
 
#define LISS_HOT   2
 
#define LISS_SELECTED   3
 
#define LISS_DISABLED   4
 
#define LISS_SELECTEDNOTFOCUS   5
 
#define LISS_HOTSELECTED   6
 
#define BP_COMMANDLINK   6
 
#define BP_COMMANDLINKGLYPH   7
 
#define CMDLGS_NORMAL   1
 
#define CMDLGS_HOT   2
 
#define CMDLGS_PRESSED   3
 
#define CMDLGS_DISABLED   4
 

Enumerations

enum  TransformType {
  SimpleTransform , HighDpiScalingTransform , ComplexTransform , SimpleTransform ,
  HighDpiScalingTransform , ComplexTransform
}
 
enum  TransformType {
  SimpleTransform , HighDpiScalingTransform , ComplexTransform , SimpleTransform ,
  HighDpiScalingTransform , ComplexTransform
}
 

Functions

static void qt_add_rect (HRGN &winRegion, QRect r)
 
static HRGN qt_hrgn_from_qregion (const QRegion &region)
 
static Qt::Orientation progressBarOrientation (const QStyleOption *option=nullptr)
 
static HWND createTreeViewHelperWindow (const QScreen *screen)
 
static TransformType transformType (const QTransform &transform, qreal devicePixelRatio)
 
static bool isFullyOpaque (const QWindowsThemeData &themeData)
 
static QRectF scaleRect (const QRectF &r, qreal factor)
 
static QRegion scaleRegion (const QRegion &region, qreal factor)
 
QObjectstyleObject (const QStyleOption *option)
 
bool canAnimate (const QStyleOption *option)
 
static QImage createAnimationBuffer (const QStyleOption *option, const QWidget *widget)
 
QStyleOptionclonedAnimationStyleOption (const QStyleOption *option)
 
void deleteClonedAnimationStyleOption (const QStyleOption *option)
 
static void populateTitleBarButtonTheme (const QStyle *proxy, const QWidget *widget, const QStyleOptionComplex *option, QStyle::SubControl subControl, bool isTitleBarActive, int part, QWindowsThemeData *theme)
 
static bool buttonVisible (const QStyle::SubControl sc, const QStyleOptionTitleBar *tb)
 
static int buttonStateId (int flags, int partId)
 
static bool supportsStateTransition (QStyle::PrimitiveElement element, const QStyleOption *option, const QWidget *widget)
 

Variables

static const int windowsItemFrame = 2
 
static const int windowsItemHMargin = 3
 
static const int windowsItemVMargin = 4
 
static const int windowsArrowHMargin = 6
 
static const int windowsRightBorder = 15
 

Macro Definition Documentation

◆ BP_COMMANDLINK

#define BP_COMMANDLINK   6

Definition at line 47 of file qwindowsvistastyle.cpp.

◆ BP_COMMANDLINKGLYPH

#define BP_COMMANDLINKGLYPH   7

Definition at line 48 of file qwindowsvistastyle.cpp.

◆ CMDLGS_DISABLED

#define CMDLGS_DISABLED   4

Definition at line 52 of file qwindowsvistastyle.cpp.

◆ CMDLGS_HOT

#define CMDLGS_HOT   2

Definition at line 50 of file qwindowsvistastyle.cpp.

◆ CMDLGS_NORMAL

#define CMDLGS_NORMAL   1

Definition at line 49 of file qwindowsvistastyle.cpp.

◆ CMDLGS_PRESSED

#define CMDLGS_PRESSED   3

Definition at line 51 of file qwindowsvistastyle.cpp.

◆ LISS_DISABLED

#define LISS_DISABLED   4

Definition at line 42 of file qwindowsvistastyle.cpp.

◆ LISS_HOT

#define LISS_HOT   2

Definition at line 40 of file qwindowsvistastyle.cpp.

◆ LISS_HOTSELECTED

#define LISS_HOTSELECTED   6

Definition at line 44 of file qwindowsvistastyle.cpp.

◆ LISS_NORMAL

#define LISS_NORMAL   1

Definition at line 39 of file qwindowsvistastyle.cpp.

◆ LISS_SELECTED

#define LISS_SELECTED   3

Definition at line 41 of file qwindowsvistastyle.cpp.

◆ LISS_SELECTEDNOTFOCUS

#define LISS_SELECTEDNOTFOCUS   5

Definition at line 43 of file qwindowsvistastyle.cpp.

◆ TMT_CONTENTMARGINS

#define TMT_CONTENTMARGINS   3602

Definition at line 33 of file qwindowsvistastyle.cpp.

◆ TMT_SIZINGMARGINS

#define TMT_SIZINGMARGINS   3601

Definition at line 36 of file qwindowsvistastyle.cpp.

Enumeration Type Documentation

◆ TransformType [1/2]

Enumerator
SimpleTransform 
HighDpiScalingTransform 
ComplexTransform 
SimpleTransform 
HighDpiScalingTransform 
ComplexTransform 

Definition at line 118 of file qwindowsvistastyle.cpp.

◆ TransformType [2/2]

Enumerator
SimpleTransform 
HighDpiScalingTransform 
ComplexTransform 
SimpleTransform 
HighDpiScalingTransform 
ComplexTransform 

Definition at line 118 of file qwindowsvistastyle.cpp.

Function Documentation

◆ buttonStateId()

static int buttonStateId ( int flags,
int partId )
static

Definition at line 1206 of file qwindowsvistastyle.cpp.

◆ buttonVisible()

static bool buttonVisible ( const QStyle::SubControl sc,
const QStyleOptionTitleBar * tb )
static

Definition at line 1158 of file qwindowsvistastyle.cpp.

◆ canAnimate()

bool canAnimate ( const QStyleOption * option)

Definition at line 1043 of file qwindowsvistastyle.cpp.

◆ clonedAnimationStyleOption()

QStyleOption * clonedAnimationStyleOption ( const QStyleOption * option)

Definition at line 1062 of file qwindowsvistastyle.cpp.

◆ createAnimationBuffer()

static QImage createAnimationBuffer ( const QStyleOption * option,
const QWidget * widget )
inlinestatic

Definition at line 1049 of file qwindowsvistastyle.cpp.

◆ createTreeViewHelperWindow()

static HWND createTreeViewHelperWindow ( const QScreen * screen)
inlinestatic

Definition at line 103 of file qwindowsvistastyle.cpp.

◆ deleteClonedAnimationStyleOption()

void deleteClonedAnimationStyleOption ( const QStyleOption * option)

Definition at line 1083 of file qwindowsvistastyle.cpp.

◆ isFullyOpaque()

static bool isFullyOpaque ( const QWindowsThemeData & themeData)
inlinestatic

Definition at line 133 of file qwindowsvistastyle.cpp.

◆ populateTitleBarButtonTheme()

static void populateTitleBarButtonTheme ( const QStyle * proxy,
const QWidget * widget,
const QStyleOptionComplex * option,
QStyle::SubControl subControl,
bool isTitleBarActive,
int part,
QWindowsThemeData * theme )
static

◆ progressBarOrientation()

static Qt::Orientation progressBarOrientation ( const QStyleOption * option = nullptr)
inlinestatic

Definition at line 87 of file qwindowsvistastyle.cpp.

◆ qt_add_rect()

static void qt_add_rect ( HRGN & winRegion,
QRect r )
static

Definition at line 61 of file qwindowsvistastyle.cpp.

◆ qt_hrgn_from_qregion()

static HRGN qt_hrgn_from_qregion ( const QRegion & region)
static

Definition at line 75 of file qwindowsvistastyle.cpp.

◆ scaleRect()

static QRectF scaleRect ( const QRectF & r,
qreal factor )
inlinestatic

Definition at line 138 of file qwindowsvistastyle.cpp.

◆ scaleRegion()

static QRegion scaleRegion ( const QRegion & region,
qreal factor )
static

Definition at line 144 of file qwindowsvistastyle.cpp.

◆ styleObject()

QObject * styleObject ( const QStyleOption * option)
inline

Definition at line 1036 of file qwindowsvistastyle.cpp.

◆ supportsStateTransition()

static bool supportsStateTransition ( QStyle::PrimitiveElement element,
const QStyleOption * option,
const QWidget * widget )
inlinestatic

Definition at line 1237 of file qwindowsvistastyle.cpp.

◆ transformType()

static TransformType transformType ( const QTransform & transform,
qreal devicePixelRatio )
inlinestatic

Variable Documentation

◆ windowsArrowHMargin

static const int windowsArrowHMargin = 6
static

Definition at line 29 of file qwindowsvistastyle.cpp.

◆ windowsItemFrame

static const int windowsItemFrame = 2
static

Definition at line 26 of file qwindowsvistastyle.cpp.

◆ windowsItemHMargin

static const int windowsItemHMargin = 3
static

Definition at line 27 of file qwindowsvistastyle.cpp.

◆ windowsItemVMargin

static const int windowsItemVMargin = 4
static

Definition at line 28 of file qwindowsvistastyle.cpp.

◆ windowsRightBorder

static const int windowsRightBorder = 15
static

Definition at line 30 of file qwindowsvistastyle.cpp.