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

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

Public Member Functions

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

Public Attributes

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

Detailed Description

The ImageData 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/3]

MiscUtils::NotificationImage::NotificationImage ( )
inline

Definition at line 107 of file dbusnotification.cpp.

◆ NotificationImage() [2/3]

MiscUtils::NotificationImage::NotificationImage ( const QVariant &  imageData)
inline

Definition at line 112 of file dbusnotification.cpp.

◆ NotificationImage() [3/3]

MiscUtils::NotificationImage::NotificationImage ( SwappedImage  image)

Definition at line 120 of file dbusnotification.cpp.

Member Function Documentation

◆ toDBusArgument()

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

Definition at line 144 of file dbusnotification.cpp.

◆ toQImage()

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

Definition at line 137 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: