![]() |
Qt 6.x
The Qt SDK
|
#include <qandroidstyle_p.h>
Public Member Functions | |
AndroidDrawable (const QVariantMap &drawable, ItemType itemType) | |
virtual | ~AndroidDrawable () |
virtual void | initPadding (const QVariantMap &drawable) |
virtual AndroidDrawableType | type () const =0 |
virtual void | draw (QPainter *painter, const QStyleOption *opt) const =0 |
const QMargins & | padding () const |
virtual QSize | size () const |
virtual void | setPaddingLeftToSizeWidth () |
Static Public Member Functions | |
static AndroidDrawable * | fromMap (const QVariantMap &drawable, ItemType itemType) |
static QMargins | extractMargins (const QVariantMap &value) |
Protected Attributes | |
ItemType | m_itemType |
QMargins | m_padding |
Definition at line 83 of file qandroidstyle_p.h.
QAndroidStyle::AndroidDrawable::AndroidDrawable | ( | const QVariantMap & | drawable, |
QAndroidStyle::ItemType | itemType | ||
) |
Definition at line 667 of file qandroidstyle.cpp.
References initPadding(), and m_itemType.
|
virtual |
Definition at line 674 of file qandroidstyle.cpp.
|
pure virtual |
Implemented in QAndroidStyle::AndroidColorDrawable, QAndroidStyle::AndroidImageDrawable, QAndroidStyle::Android9PatchDrawable, QAndroidStyle::AndroidGradientDrawable, QAndroidStyle::AndroidClipDrawable, QAndroidStyle::AndroidStateDrawable, and QAndroidStyle::AndroidLayerDrawable.
Referenced by QAndroidStyle::AndroidStateDrawable::draw().
|
static |
Definition at line 719 of file qandroidstyle.cpp.
References toInt().
|
static |
Definition at line 698 of file qandroidstyle.cpp.
References QVariant::toString(), and QMap< Key, T >::value().
Referenced by QAndroidStyle::AndroidClipDrawable::AndroidClipDrawable(), QAndroidStyle::AndroidCompoundButtonControl::AndroidCompoundButtonControl(), QAndroidStyle::AndroidControl::AndroidControl(), QAndroidStyle::AndroidLayerDrawable::AndroidLayerDrawable(), QAndroidStyle::AndroidProgressBarControl::AndroidProgressBarControl(), QAndroidStyle::AndroidSeekBarControl::AndroidSeekBarControl(), and QAndroidStyle::AndroidStateDrawable::AndroidStateDrawable().
|
virtual |
Definition at line 678 of file qandroidstyle.cpp.
References QMap< Key, T >::end(), QMap< Key, T >::find(), and it.
Referenced by QAndroidStyle::Android9PatchDrawable::Android9PatchDrawable(), and AndroidDrawable().
const QMargins & QAndroidStyle::AndroidDrawable::padding | ( | ) | const |
Definition at line 685 of file qandroidstyle.cpp.
Referenced by QAndroidStyle::AndroidControl::padding().
|
virtual |
Reimplemented in QAndroidStyle::AndroidStateDrawable.
Definition at line 729 of file qandroidstyle.cpp.
References QSize::isNull(), and QSize::width().
Referenced by QAndroidStyle::AndroidStateDrawable::setPaddingLeftToSizeWidth().
|
virtual |
Reimplemented in QAndroidStyle::AndroidImageDrawable, QAndroidStyle::AndroidGradientDrawable, and QAndroidStyle::AndroidLayerDrawable.
Definition at line 690 of file qandroidstyle.cpp.
References QAndroidStyle::Image, and QAndroidStyle::NinePatch.
Referenced by QAndroidStyle::AndroidSeekBarControl::drawControl(), QAndroidStyle::AndroidControl::size(), QAndroidStyle::AndroidCompoundButtonControl::size(), QAndroidStyle::AndroidSeekBarControl::sizeFromContents(), QAndroidStyle::AndroidStateDrawable::sizeImage(), and QAndroidStyle::AndroidSeekBarControl::subControlRect().
|
pure virtual |
Implemented in QAndroidStyle::AndroidColorDrawable, QAndroidStyle::AndroidImageDrawable, QAndroidStyle::Android9PatchDrawable, QAndroidStyle::AndroidGradientDrawable, QAndroidStyle::AndroidClipDrawable, QAndroidStyle::AndroidStateDrawable, and QAndroidStyle::AndroidLayerDrawable.
Referenced by QAndroidStyle::AndroidProgressBarControl::drawControl(), QAndroidStyle::AndroidSeekBarControl::drawControl(), QAndroidStyle::AndroidSeekBarControl::sizeFromContents(), and QAndroidStyle::AndroidSeekBarControl::subControlRect().
|
protected |
Definition at line 97 of file qandroidstyle_p.h.
Referenced by AndroidDrawable().
|
protected |
Definition at line 98 of file qandroidstyle_p.h.