![]() |
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 |
namespace | QtPrivate |
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) |
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. | |
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) |
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) |
template<typename InputIterator, typename ValueType = typename std::iterator_traits<InputIterator>::value_type, QtPrivate::IfIsInputIterator< InputIterator > = true> | |
QList (InputIterator, InputIterator) -> QList< ValueType > | |
template<typename T> | |
size_t | qHash (const QList< T > &key, size_t seed=0) noexcept(noexcept(qHashRange(key.cbegin(), key.cend(), seed))) |
template<typename T, typename AT> | |
qsizetype | erase (QList< T > &list, const AT &t) |
template<typename T, typename Predicate> | |
qsizetype | erase_if (QList< T > &list, Predicate pred) |
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 862 of file qquickdrawutil.cpp.
Enumerator | |
---|---|
UnknownAlpha | |
NoAlpha | |
MaskAlpha | |
RealAlpha |
Definition at line 132 of file qquickwindowsxpstyle_p_p.h.
Enumerator | |
---|---|
SlUp | |
SlDown | |
SlLeft | |
SlRight | |
SlUp | |
SlDown | |
SlLeft | |
SlRight |
Definition at line 63 of file qquickwindowsstyle.cpp.
Enumerator | |
---|---|
SlUp | |
SlDown | |
SlLeft | |
SlRight | |
SlUp | |
SlDown | |
SlLeft | |
SlRight |
Definition at line 63 of file qquickwindowsstyle.cpp.
|
static |
Definition at line 3157 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 2905 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionSlider::maximum, QQC2::QStyleOptionSlider::minimum, QQC2::QStyleOptionSlider::sliderPosition, and QQC2::QStyleOptionSlider::upsideDown.
|
inlinestatic |
Definition at line 5098 of file qquickcommonstyle.cpp.
|
inlinestatic |
Definition at line 179 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 687 of file qquickcommonstyle.cpp.
Definition at line 1065 of file qquickwindowsstyle_p_p.h.
qsizetype QQC2::erase_if | ( | QList< T > & | list, |
Predicate | pred ) |
Definition at line 1071 of file qquickwindowsstyle_p_p.h.
QDebug QQC2::operator<< | ( | QDebug | d, |
const ThemeMapData & | td ) |
QDebug QQC2::operator<< | ( | QDebug | d, |
const ThemeMapKey & | k ) |
Definition at line 3839 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 3827 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 619 of file qquickstyleoption.cpp.
References QQC2::QStyleOption::type.
QDebug QQC2::operator<< | ( | QDebug | debug, |
const QStyleOption::OptionType & | optionType ) |
Definition at line 554 of file qquickstyleoption.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 125 of file qquickwindowsxpstyle_p_p.h.
References QQC2::ThemeMapKey::partId, QQC2::ThemeMapKey::stateId, and QQC2::ThemeMapKey::theme.
|
static |
Definition at line 2309 of file qquickwindowsxpstyle.cpp.
References QQC2::XPThemeData::partId, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_MouseOver, QQC2::QStyle::State_Sunken, and QQC2::XPThemeData::stateId.
|
inlinestatic |
Definition at line 3030 of file qquickwindowsxpstyle.cpp.
|
inline |
Definition at line 126 of file qquickdrawutil.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 879 of file qquickdrawutil.cpp.
void QQC2::qDrawPlainRect | ( | QPainter * | p, |
const QRect & | r, | ||
const QColor & | c, | ||
int | lineWidth = 1, | ||
const QBrush * | fill = nullptr ) |
Definition at line 817 of file qquickdrawutil.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 579 of file qquickdrawutil.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 653 of file qquickdrawutil.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 89 of file qquickdrawutil.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 729 of file qquickdrawutil.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 qquickdrawutil.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 692 of file qquickdrawutil.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 216 of file qquickdrawutil.cpp.
void QQC2::qDrawWinButton | ( | QPainter * | p, |
const QRect & | r, | ||
const QPalette & | pal, | ||
bool | sunken = false, | ||
const QBrush * | fill = nullptr ) |
Definition at line 760 of file qquickdrawutil.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 503 of file qquickdrawutil.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 790 of file qquickdrawutil.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 qquickdrawutil.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 qquickdrawutil.cpp.
|
noexcept |
Definition at line 1058 of file qquickwindowsstyle_p_p.h.
|
inline |
Definition at line 122 of file qquickwindowsxpstyle_p_p.h.
References QQC2::ThemeMapKey::partId, QQC2::ThemeMapKey::stateId, and QQC2::ThemeMapKey::theme.
QQC2::QList | ( | InputIterator | , |
InputIterator | ) -> QList< ValueType > |
T QQC2::qstyleoption_cast | ( | const QStyleHintReturn * | hint | ) |
Definition at line 764 of file qquickstyleoption.h.
T QQC2::qstyleoption_cast | ( | const QStyleOption * | opt | ) |
Definition at line 697 of file qquickstyleoption.h.
T QQC2::qstyleoption_cast | ( | QStyleHintReturn * | hint | ) |
Definition at line 774 of file qquickstyleoption.h.
T QQC2::qstyleoption_cast | ( | QStyleOption * | opt | ) |
Definition at line 709 of file qquickstyleoption.h.
Definition at line 91 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 105 of file qquickwindowsxpstyle.cpp.
Definition at line 6052 of file qquickcommonstyle.cpp.
Referenced by QQC2::QCommonStyle::generatedIconPixmap().
Definition at line 625 of file qquickwindowsxpstyle.cpp.
Definition at line 632 of file qquickwindowsxpstyle.cpp.
Definition at line 289 of file qquickwindowsstyle.cpp.
Definition at line 40 of file qquickstyle_p.h.
Definition at line 48 of file qquickstyle_p.h.
|
static |
Definition at line 712 of file qquickcommonstyle.cpp.
|
static |
Definition at line 24 of file qquickcommonstylepixmaps_p.h.
|
static |
Definition at line 419 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 326 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 101 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 75 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 340 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
Q_DECL_DEPRECATED typedef QStyleOptionDockWidget QQC2::QStyleOptionDockWidgetV2 |
Definition at line 381 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV2 |
Definition at line 127 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV3 |
Definition at line 128 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV2 |
Definition at line 279 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV3 |
Definition at line 280 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionTabWidgetFrame QQC2::QStyleOptionTabWidgetFrameV2 |
Definition at line 192 of file qquickstyleoption.h.
Q_DECL_DEPRECATED typedef QStyleOptionToolBox QQC2::QStyleOptionToolBoxV2 |
Definition at line 462 of file qquickstyleoption.h.
|
static |
Definition at line 221 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 281 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 236 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 130 of file qquickcommonstylepixmaps_p.h.
|
static |
Definition at line 251 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 266 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 296 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 311 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 458 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 63 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 48 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 33 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 380 of file qquickcommonstylepixmaps_p.h.
Referenced by QQC2::QCommonStyle::standardPixmap().
|
static |
Definition at line 29 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 26 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 27 of file qquickwindowsxpstyle.cpp.
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
static |
Definition at line 28 of file qquickwindowsxpstyle.cpp.
|
static |
Definition at line 30 of file qquickwindowsxpstyle.cpp.