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

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::AndroidColorDrawable:
+ Collaboration diagram for QAndroidStyle::AndroidColorDrawable:

Public Member Functions

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

Protected Attributes

QColor m_color
 
- 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 101 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidColorDrawable()

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

Definition at line 770 of file qandroidstyle.cpp.

References m_color, QRgb, QColor::setRgba(), toInt(), and QMap< Key, T >::value().

+ Here is the call graph for this function:

Member Function Documentation

◆ draw()

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

Implements QAndroidStyle::AndroidDrawable.

Definition at line 782 of file qandroidstyle.cpp.

References QPainter::fillRect(), opt, painter, and QStyleOption::rect.

+ Here is the call graph for this function:

◆ type()

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

Implements QAndroidStyle::AndroidDrawable.

Definition at line 777 of file qandroidstyle.cpp.

References QAndroidStyle::Color.

Member Data Documentation

◆ m_color

QColor QAndroidStyle::AndroidColorDrawable::m_color
protected

Definition at line 109 of file qandroidstyle_p.h.

Referenced by AndroidColorDrawable().


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