Qt Utilities  5.12.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MiscUtils::NotificationImage Struct Reference

The NotificationImage struct is a raw data image format. More...

Inheritance diagram for MiscUtils::NotificationImage:
[legend]
Collaboration diagram for MiscUtils::NotificationImage:
[legend]

Public Member Functions

 NotificationImage ()
 
 NotificationImage (SwappedImage image)
 
QImage toQImage () const
 
QVariant toDBusArgument () const
 

Static Public Member Functions

static NotificationImage fromDBusArgument (const QVariant &variant)
 

Public Attributes

qint32 width
 
qint32 height
 
qint32 rowstride
 
bool hasAlpha
 
qint32 channels
 
qint32 bitsPerSample
 
QByteArray data
 
bool isValid
 

Detailed Description

The NotificationImage struct is a raw data image format.

It describes the width, height, rowstride, has alpha, bits per sample, channels and image data respectively.

Definition at line 59 of file dbusnotification.cpp.

Constructor & Destructor Documentation

◆ NotificationImage() [1/2]

MiscUtils::NotificationImage::NotificationImage ( )
inline

Definition at line 95 of file dbusnotification.cpp.

◆ NotificationImage() [2/2]

MiscUtils::NotificationImage::NotificationImage ( SwappedImage  image)
inline

Definition at line 100 of file dbusnotification.cpp.

Member Function Documentation

◆ fromDBusArgument()

NotificationImage MiscUtils::NotificationImage::fromDBusArgument ( const QVariant &  variant)
inlinestatic

Definition at line 134 of file dbusnotification.cpp.

◆ toDBusArgument()

QVariant MiscUtils::NotificationImage::toDBusArgument ( ) const
inline

Definition at line 129 of file dbusnotification.cpp.

◆ toQImage()

QImage MiscUtils::NotificationImage::toQImage ( ) const
inline

Definition at line 122 of file dbusnotification.cpp.

Member Data Documentation

◆ bitsPerSample

qint32 MiscUtils::NotificationImage::bitsPerSample

Definition at line 71 of file dbusnotification.cpp.

◆ channels

qint32 MiscUtils::NotificationImage::channels

Definition at line 70 of file dbusnotification.cpp.

◆ data

QByteArray MiscUtils::NotificationImage::data

Definition at line 72 of file dbusnotification.cpp.

◆ hasAlpha

bool MiscUtils::NotificationImage::hasAlpha

Definition at line 69 of file dbusnotification.cpp.

◆ height

qint32 MiscUtils::NotificationImage::height

Definition at line 67 of file dbusnotification.cpp.

◆ isValid

bool MiscUtils::NotificationImage::isValid

Definition at line 73 of file dbusnotification.cpp.

◆ rowstride

qint32 MiscUtils::NotificationImage::rowstride

Definition at line 68 of file dbusnotification.cpp.

◆ width

qint32 MiscUtils::NotificationImage::width

Definition at line 66 of file dbusnotification.cpp.


The documentation for this struct was generated from the following file: