Qt 4.8
Public Functions | Properties | List of all members
quint24 Class Reference

#include <qdrawhelper_p.h>

Public Functions

 operator quint32 ()
 
bool operator== (const quint24 &v) const
 
 quint24 (quint32 v)
 

Properties

uchar data [3]
 

Detailed Description

Definition at line 1527 of file qdrawhelper_p.h.

Constructors and Destructors

◆ quint24()

quint24::quint24 ( quint32  v)
inline

Definition at line 1530 of file qdrawhelper_p.h.

1531  {
1532  data[0] = qBlue(v);
1533  data[1] = qGreen(v);
1534  data[2] = qRed(v);
1535  }
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Definition: qrgb.h:57
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
Definition: qrgb.h:63
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
Definition: qrgb.h:60
uchar data[3]

Functions

◆ operator quint32()

quint24::operator quint32 ( )
inline

Definition at line 1537 of file qdrawhelper_p.h.

1538  {
1539  return qRgb(data[2], data[1], data[0]);
1540  }
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
Definition: qrgb.h:69
uchar data[3]

◆ operator==()

bool quint24::operator== ( const quint24 v) const
inline

Definition at line 1542 of file qdrawhelper_p.h.

1543  {
1544  return data[0] == v.data[0]
1545  && data[1] == v.data[1]
1546  && data[2] == v.data[2];
1547  }
uchar data[3]

Properties

◆ data

uchar quint24::data[3]
private

Definition at line 1550 of file qdrawhelper_p.h.

Referenced by operator==().


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