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

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::AndroidImageDrawable:
+ Collaboration diagram for QAndroidStyle::AndroidImageDrawable:

Public Member Functions

 AndroidImageDrawable (const QVariantMap &drawable, ItemType itemType)
 
virtual AndroidDrawableType type () const
 
virtual void draw (QPainter *painter, const QStyleOption *opt) const
 
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 ()
 

Protected Attributes

QString m_filePath
 
QString m_hashKey
 
QSize m_size
 
- Protected Attributes inherited from QAndroidStyle::AndroidDrawable
ItemType m_itemType
 
QMargins m_padding
 

Additional Inherited Members

- Static Public Member Functions inherited from QAndroidStyle::AndroidDrawable
static AndroidDrawablefromMap (const QVariantMap &drawable, ItemType itemType)
 
static QMargins extractMargins (const QVariantMap &value)
 

Detailed Description

Definition at line 112 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidImageDrawable()

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

Definition at line 737 of file qandroidstyle.cpp.

References m_filePath, m_size, QSize::setHeight(), QSize::setWidth(), toInt(), QVariant::toString(), and QMap< Key, T >::value().

+ Here is the call graph for this function:

Member Function Documentation

◆ draw()

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

Implements QAndroidStyle::AndroidDrawable.

Reimplemented in QAndroidStyle::Android9PatchDrawable.

Definition at line 751 of file qandroidstyle.cpp.

References QPainter::drawPixmap(), QFileInfo::fileName(), QPixmapCache::find(), QPixmap::height(), QRect::height(), QPixmapCache::insert(), QPixmap::load(), opt, painter, QStyleOption::rect, QRect::x(), and QRect::y().

+ Here is the call graph for this function:

◆ size()

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

Reimplemented from QAndroidStyle::AndroidDrawable.

Definition at line 765 of file qandroidstyle.cpp.

◆ type()

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

Implements QAndroidStyle::AndroidDrawable.

Reimplemented in QAndroidStyle::Android9PatchDrawable.

Definition at line 746 of file qandroidstyle.cpp.

References QAndroidStyle::Image.

Member Data Documentation

◆ m_filePath

QString QAndroidStyle::AndroidImageDrawable::m_filePath
protected

Definition at line 121 of file qandroidstyle_p.h.

Referenced by AndroidImageDrawable().

◆ m_hashKey

QString QAndroidStyle::AndroidImageDrawable::m_hashKey
mutableprotected

Definition at line 122 of file qandroidstyle_p.h.

◆ m_size

QSize QAndroidStyle::AndroidImageDrawable::m_size
protected

Definition at line 123 of file qandroidstyle_p.h.

Referenced by AndroidImageDrawable().


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