![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Namespaces | |
| namespace | QDrawBorderPixmap |
| namespace | QStyleHelper |
Typedefs | |
| typedef QVarLengthArray< QPainter::PixmapFragment, 16 > | QPixmapFragmentsArray |
Enumerations | |
| enum | QSliderDirection { SlUp , SlDown , SlLeft , SlRight , SlUp , SlDown , SlLeft , SlRight } |
| enum | AlphaChannelType { UnknownAlpha = -1 , NoAlpha , MaskAlpha , RealAlpha } |
| enum | QSliderDirection { SlUp , SlDown , SlLeft , SlRight , SlUp , SlDown , SlLeft , SlRight } |
Functions | |
| static void | drawArrow (const QStyle *style, const QStyleOptionToolButton *toolbutton, const QRect &rect, QPainter *painter) |
| static QSizeF | viewItemTextLayout (QTextLayout &textLayout, int lineWidth, int maxHeight=-1, int *lastVisibleLine=nullptr) |
| static StaticPolygonF< 3 > | calcArrow (const QStyleOptionSlider *dial, qreal &a) |
| static QString | clearText16IconPath () |
| static uint | qt_intensity (uint r, uint g, uint b) |
| void | qDrawShadeLine (QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth) |
| void | qDrawShadeRect (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill) |
| void | qDrawShadePanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill) |
| static void | qDrawWinShades (QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill) |
| void | qDrawWinButton (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawWinPanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawPlainRect (QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill) |
| void | qDrawShadeLine (QPainter *p, const QPoint &p1, const QPoint &p2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth) |
| void | qDrawShadeRect (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill) |
| void | qDrawShadePanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill) |
| void | qDrawWinButton (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawWinPanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill) |
| void | qDrawPlainRect (QPainter *p, const QRect &r, const QColor &c, int lineWidth, const QBrush *fill) |
| void | qDrawBorderPixmap (QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints) |
| void | qDrawBorderPixmap (QPainter *painter, const QRect &target, const QMargins &margins, const QPixmap &pixmap) |
| The qDrawBorderPixmap function is for drawing a pixmap into the margins of a rectangle. | |
| QStyle * | style () |
| QImage | styleCacheImage (const QSize &size) |
| QPixmap | styleCachePixmap (const QSize &size) |
| QDebug | operator<< (QDebug debug, const QStyleOption::OptionType &optionType) |
| QDebug | operator<< (QDebug debug, const QStyleOption &option) |
| template<typename T> | |
| T | qstyleoption_cast (const QStyleOption *opt) |
| template<typename T> | |
| T | qstyleoption_cast (QStyleOption *opt) |
| template<typename T> | |
| T | qstyleoption_cast (const QStyleHintReturn *hint) |
| template<typename T> | |
| T | qstyleoption_cast (QStyleHintReturn *hint) |
| static QScreen * | screenOf (const QWindow *w) |
| static void | qt_add_rect (HRGN &winRegion, QRect r) |
| static HRGN | qt_hrgn_from_qregion (const QRegion ®ion) |
| static HWND | createTreeViewHelperWindow () |
| static QRectF | scaleRect (const QRectF &r, qreal factor) |
| static QRegion | scaleRegion (const QRegion ®ion, qreal factor) |
| static void | populateTitleBarButtonTheme (const QStyle *proxy, const QStyleOptionComplex *option, QStyle::SubControl subControl, bool isTitleBarActive, int part, XPThemeData *theme) |
| static Qt::Orientation | progressBarOrientation (const QStyleOption *option=nullptr) |
| static bool | buttonVisible (const QStyle::SubControl sc, const QStyleOptionTitleBar *tb) |
| QDebug | operator<< (QDebug d, const XPThemeData &t) |
| QDebug | operator<< (QDebug d, const ThemeMapKey &k) |
| QDebug | operator<< (QDebug d, const ThemeMapData &td) |
| size_t | qHash (const ThemeMapKey &key) |
| bool | operator== (const ThemeMapKey &k1, const ThemeMapKey &k2) |
| typedef QVarLengthArray< QPainter::PixmapFragment, 16 > QQC2::QPixmapFragmentsArray |
Definition at line 860 of file qqc2qdrawutil.cpp.
| Enumerator | |
|---|---|
| UnknownAlpha | |
| NoAlpha | |
| MaskAlpha | |
| RealAlpha | |
Definition at line 133 of file qquickwindowsxpstyle_p_p.h.
| Enumerator | |
|---|---|
| SlUp | |
| SlDown | |
| SlLeft | |
| SlRight | |
| SlUp | |
| SlDown | |
| SlLeft | |
| SlRight | |
Definition at line 66 of file qquickwindowsstyle.cpp.
| Enumerator | |
|---|---|
| SlUp | |
| SlDown | |
| SlLeft | |
| SlRight | |
| SlUp | |
| SlDown | |
| SlLeft | |
| SlRight | |
Definition at line 66 of file qquickwindowsstyle.cpp.
|
static |
Definition at line 3168 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 2906 of file qqc2qcommonstyle.cpp.
|
inlinestatic |
Definition at line 5101 of file qqc2qcommonstyle.cpp.
|
inlinestatic |
Definition at line 181 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 687 of file qqc2qcommonstyle.cpp.
| QDebug QQC2::operator<< | ( | QDebug | d, |
| const ThemeMapData & | td ) |
| QDebug QQC2::operator<< | ( | QDebug | d, |
| const ThemeMapKey & | k ) |
Definition at line 3860 of file qquickwindowsxpstyle.cpp.
References QQC2::ThemeMapKey::noBorder, QQC2::ThemeMapKey::noContent, QQC2::ThemeMapKey::partId, QQC2::ThemeMapKey::stateId, and QQC2::ThemeMapKey::theme.
| QDebug QQC2::operator<< | ( | QDebug | d, |
| const XPThemeData & | t ) |
Definition at line 3848 of file qquickwindowsxpstyle.cpp.
References QQC2::XPThemeData::partId, QQC2::XPThemeData::stateId, and QQC2::XPThemeData::theme.
| QDebug QQC2::operator<< | ( | QDebug | debug, |
| const QStyleOption & | option ) |
Definition at line 651 of file qqc2qstyleoption.cpp.
References QQC2::QStyleOption::type.
| QDebug QQC2::operator<< | ( | QDebug | debug, |
| const QStyleOption::OptionType & | optionType ) |
Definition at line 586 of file qqc2qstyleoption.cpp.
References QQC2::QStyleOption::SO_Button, QQC2::QStyleOption::SO_ComboBox, QQC2::QStyleOption::SO_Complex, QQC2::QStyleOption::SO_ComplexCustomBase, QQC2::QStyleOption::SO_CustomBase, QQC2::QStyleOption::SO_Default, QQC2::QStyleOption::SO_DockWidget, QQC2::QStyleOption::SO_FocusRect, QQC2::QStyleOption::SO_Frame, QQC2::QStyleOption::SO_GraphicsItem, QQC2::QStyleOption::SO_GroupBox, QQC2::QStyleOption::SO_Header, QQC2::QStyleOption::SO_MenuItem, QQC2::QStyleOption::SO_ProgressBar, QQC2::QStyleOption::SO_RubberBand, QQC2::QStyleOption::SO_SearchField, QQC2::QStyleOption::SO_SizeGrip, QQC2::QStyleOption::SO_Slider, QQC2::QStyleOption::SO_SpinBox, QQC2::QStyleOption::SO_Tab, QQC2::QStyleOption::SO_TabBarBase, QQC2::QStyleOption::SO_TabWidgetFrame, QQC2::QStyleOption::SO_TitleBar, QQC2::QStyleOption::SO_ToolBar, QQC2::QStyleOption::SO_ToolBox, QQC2::QStyleOption::SO_ToolButton, and QQC2::QStyleOption::SO_ViewItem.
|
inline |
Definition at line 126 of file qquickwindowsxpstyle_p_p.h.
References QQC2::ThemeMapKey::partId, QQC2::ThemeMapKey::stateId, and QQC2::ThemeMapKey::theme.
|
static |
Definition at line 2316 of file qquickwindowsxpstyle.cpp.
References QQC2::XPThemeData::partId, and QQC2::XPThemeData::stateId.
|
inlinestatic |
Definition at line 3038 of file qquickwindowsxpstyle.cpp.
|
inline |
The qDrawBorderPixmap function is for drawing a pixmap into the margins of a rectangle.
Draws the given pixmap into the given target rectangle, using the given painter. The pixmap will be split into nine segments and drawn according to the margins structure.
Definition at line 142 of file qqc2qdrawutil_p.h.
| void QQC2::qDrawBorderPixmap | ( | QPainter * | painter, |
| const QRect & | targetRect, | ||
| const QMargins & | targetMargins, | ||
| const QPixmap & | pixmap, | ||
| const QRect & | sourceRect, | ||
| const QMargins & | sourceMargins, | ||
| const QTileRules & | rules = QTileRules(), | ||
| QDrawBorderPixmap::DrawingHints | hints = QDrawBorderPixmap::DrawingHints() ) |
Draws the indicated sourceRect rectangle from the given pixmap into the given targetRect rectangle, using the given painter. The pixmap will be split into nine segments according to the given targetMargins and sourceMargins structures. Finally, the pixmap will be drawn according to the given rules.
This function is used to draw a scaled pixmap, similar to \l{http://www.w3.org/TR/css3-background/}{CSS3 border-images}
Definition at line 877 of file qqc2qdrawutil.cpp.
References QQC2::QDrawBorderPixmap::OpaqueBottom, QQC2::QDrawBorderPixmap::OpaqueBottomLeft, QQC2::QDrawBorderPixmap::OpaqueBottomRight, QQC2::QDrawBorderPixmap::OpaqueCenter, QQC2::QDrawBorderPixmap::OpaqueLeft, QQC2::QDrawBorderPixmap::OpaqueRight, QQC2::QDrawBorderPixmap::OpaqueTop, QQC2::QDrawBorderPixmap::OpaqueTopLeft, and QQC2::QDrawBorderPixmap::OpaqueTopRight.
| void QQC2::qDrawPlainRect | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QColor & | c, | ||
| int | lineWidth = 1, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 812 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawPlainRect | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QColor & | c, | ||
| int | lineWidth = 1, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 578 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadeLine | ( | QPainter * | p, |
| const QPoint & | p1, | ||
| const QPoint & | p2, | ||
| const QPalette & | pal, | ||
| bool | sunken = true, | ||
| int | lineWidth = 1, | ||
| int | midLineWidth = 0 ) |
Definition at line 651 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadeLine | ( | QPainter * | p, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| const QPalette & | pal, | ||
| bool | sunken = true, | ||
| int | lineWidth = 1, | ||
| int | midLineWidth = 0 ) |
Definition at line 91 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadePanel | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| int | lineWidth = 1, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 725 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadePanel | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| int | lineWidth = 1, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 333 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadeRect | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| int | lineWidth = 1, | ||
| int | midLineWidth = 0, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 689 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawShadeRect | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| int | lineWidth = 1, | ||
| int | midLineWidth = 0, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 217 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawWinButton | ( | QPainter * | p, |
| const QRect & | r, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 757 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawWinButton | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 504 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawWinPanel | ( | QPainter * | painter, |
| const QRect & | rect, | ||
| const QPalette & | palette, | ||
| bool | sunken = false, | ||
| const QBrush * | fill = nullptr ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Draws the Windows-style panel at the rectangle specified by rect using the given painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.
The given palette specifies the shading colors. The panel appears sunken if sunken is true, otherwise raised.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel.
Definition at line 786 of file qqc2qdrawutil.cpp.
| void QQC2::qDrawWinPanel | ( | QPainter * | p, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const QPalette & | pal, | ||
| bool | sunken = false, | ||
| const QBrush * | fill = nullptr ) |
Definition at line 543 of file qqc2qdrawutil.cpp.
|
static |
This function draws a rectangle with two pixel line width. It is called from qDrawWinButton() and qDrawWinPanel().
c1..c4 and fill are used:
1 1 1 1 1 2 1 3 3 3 4 2 1 3 F F 4 2 1 3 F F 4 2 1 4 4 4 4 2 2 2 2 2 2 2
Definition at line 431 of file qqc2qdrawutil.cpp.
|
inline |
Definition at line 123 of file qquickwindowsxpstyle_p_p.h.
References QQC2::ThemeMapKey::partId, QQC2::ThemeMapKey::stateId, and QQC2::ThemeMapKey::theme.
| T QQC2::qstyleoption_cast | ( | const QStyleHintReturn * | hint | ) |
Definition at line 775 of file qqc2qstyleoption_p.h.
| T QQC2::qstyleoption_cast | ( | const QStyleOption * | opt | ) |
Definition at line 708 of file qqc2qstyleoption_p.h.
| T QQC2::qstyleoption_cast | ( | QStyleHintReturn * | hint | ) |
Definition at line 785 of file qqc2qstyleoption_p.h.
| T QQC2::qstyleoption_cast | ( | QStyleOption * | opt | ) |
Definition at line 720 of file qqc2qstyleoption_p.h.
Definition at line 93 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 107 of file qquickwindowsxpstyle.cpp.
Definition at line 6055 of file qqc2qcommonstyle.cpp.
Definition at line 627 of file qquickwindowsxpstyle.cpp.
Definition at line 634 of file qquickwindowsxpstyle.cpp.
Definition at line 294 of file qquickwindowsstyle.cpp.
| QStyle * QQC2::style | ( | ) |
Definition at line 111 of file qqc2qnativestyle.cpp.
Definition at line 38 of file qqc2qstyle_p_p.h.
Definition at line 46 of file qqc2qstyle_p_p.h.
|
static |
Definition at line 712 of file qqc2qcommonstyle.cpp.
|
static |
Definition at line 27 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 422 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 329 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 104 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 78 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 45 of file qtquickcontrols2nativestyleplugin.cpp.
Referenced by QQC2::QtQuickControls2NativeStylePlugin::initializeEngine().
|
static |
Definition at line 343 of file qqc2qcommonstylepixmaps_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionDockWidget QQC2::QStyleOptionDockWidgetV2 |
Definition at line 392 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV2 |
Definition at line 138 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV3 |
Definition at line 139 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV2 |
Definition at line 290 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV3 |
Definition at line 291 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionTabWidgetFrame QQC2::QStyleOptionTabWidgetFrameV2 |
Definition at line 203 of file qqc2qstyleoption_p.h.
| Q_DECL_DEPRECATED typedef QStyleOptionToolBox QQC2::QStyleOptionToolBoxV2 |
Definition at line 473 of file qqc2qstyleoption_p.h.
|
static |
Definition at line 224 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 284 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 239 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 133 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 254 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 269 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 299 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 314 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 461 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 66 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 51 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 35 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 383 of file qqc2qcommonstylepixmaps_p.h.
|
static |
Definition at line 31 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 28 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 29 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 30 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 32 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().