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::Android9PatchDrawable Class Reference

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::Android9PatchDrawable:
+ Collaboration diagram for QAndroidStyle::Android9PatchDrawable:

Public Member Functions

 Android9PatchDrawable (const QVariantMap &drawable, ItemType itemType)
 
virtual AndroidDrawableType type () const
 
virtual void draw (QPainter *painter, const QStyleOption *opt) const
 
- Public Member Functions inherited from QAndroidStyle::AndroidImageDrawable
 AndroidImageDrawable (const QVariantMap &drawable, ItemType itemType)
 
virtual QSize size () const
 
- Public Member Functions inherited from QAndroidStyle::AndroidDrawable
 AndroidDrawable (const QVariantMap &drawable, ItemType itemType)
 
virtual ~AndroidDrawable ()
 
virtual void initPadding (const QVariantMap &drawable)
 
const QMarginspadding () const
 
virtual void setPaddingLeftToSizeWidth ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QAndroidStyle::AndroidDrawable
static AndroidDrawablefromMap (const QVariantMap &drawable, ItemType itemType)
 
static QMargins extractMargins (const QVariantMap &value)
 
- Protected Attributes inherited from QAndroidStyle::AndroidImageDrawable
QString m_filePath
 
QString m_hashKey
 
QSize m_size
 
- Protected Attributes inherited from QAndroidStyle::AndroidDrawable
ItemType m_itemType
 
QMargins m_padding
 

Detailed Description

Definition at line 126 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ Android9PatchDrawable()

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

Definition at line 787 of file qandroidstyle.cpp.

References QAndroidStyle::Android9PatchChunk::colors, QAndroidStyle::AndroidDrawable::initPadding(), toList(), QVariant::toMap(), QMap< Key, T >::value(), QAndroidStyle::Android9PatchChunk::xDivs, and QAndroidStyle::Android9PatchChunk::yDivs.

+ Here is the call graph for this function:

Member Function Documentation

◆ draw()

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

◆ type()

QAndroidStyle::AndroidDrawableType QAndroidStyle::Android9PatchDrawable::type ( ) const
virtual

Reimplemented from QAndroidStyle::AndroidImageDrawable.

Definition at line 798 of file qandroidstyle.cpp.

References QAndroidStyle::NinePatch.


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