Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAndroidStyle::AndroidDrawable Class Referenceabstract

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::AndroidDrawable:
+ Collaboration diagram for QAndroidStyle::AndroidDrawable:

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 QMarginspadding () const
 
virtual QSize size () const
 
virtual void setPaddingLeftToSizeWidth ()
 

Static Public Member Functions

static AndroidDrawablefromMap (const QVariantMap &drawable, ItemType itemType)
 
static QMargins extractMargins (const QVariantMap &value)
 

Protected Attributes

ItemType m_itemType
 
QMargins m_padding
 

Detailed Description

Definition at line 83 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidDrawable()

QAndroidStyle::AndroidDrawable::AndroidDrawable ( const QVariantMap & drawable,
QAndroidStyle::ItemType itemType )

Definition at line 667 of file qandroidstyle.cpp.

References initPadding(), and m_itemType.

+ Here is the call graph for this function:

◆ ~AndroidDrawable()

QAndroidStyle::AndroidDrawable::~AndroidDrawable ( )
virtual

Definition at line 674 of file qandroidstyle.cpp.

Member Function Documentation

◆ draw()

virtual void QAndroidStyle::AndroidDrawable::draw ( QPainter * painter,
const QStyleOption * opt ) const
pure virtual

◆ extractMargins()

QMargins QAndroidStyle::AndroidDrawable::extractMargins ( const QVariantMap & value)
static

Definition at line 719 of file qandroidstyle.cpp.

References QMargins::setLeft(), and toInt().

+ Here is the call graph for this function:

◆ fromMap()

QAndroidStyle::AndroidDrawable * QAndroidStyle::AndroidDrawable::fromMap ( const QVariantMap & drawable,
ItemType itemType )
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().

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

◆ initPadding()

void QAndroidStyle::AndroidDrawable::initPadding ( const QVariantMap & drawable)
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().

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

◆ padding()

const QMargins & QAndroidStyle::AndroidDrawable::padding ( ) const

Definition at line 685 of file qandroidstyle.cpp.

Referenced by QAndroidStyle::AndroidControl::padding().

+ Here is the caller graph for this function:

◆ setPaddingLeftToSizeWidth()

void QAndroidStyle::AndroidDrawable::setPaddingLeftToSizeWidth ( )
virtual

Reimplemented in QAndroidStyle::AndroidStateDrawable.

Definition at line 729 of file qandroidstyle.cpp.

References QSize::isNull(), and QSize::width().

Referenced by QAndroidStyle::AndroidStateDrawable::setPaddingLeftToSizeWidth().

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

◆ size()

QSize QAndroidStyle::AndroidDrawable::size ( ) const
virtual

◆ type()

Member Data Documentation

◆ m_itemType

ItemType QAndroidStyle::AndroidDrawable::m_itemType
protected

Definition at line 97 of file qandroidstyle_p.h.

Referenced by AndroidDrawable().

◆ m_padding

QMargins QAndroidStyle::AndroidDrawable::m_padding
protected

Definition at line 98 of file qandroidstyle_p.h.


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