LibreOffice Module basegfx (master) 1
Public Member Functions | Private Attributes | List of all members
basegfx::BPixel Class Referencefinal

#include <bpixel.hxx>

Public Member Functions

 BPixel ()
 
 BPixel (sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue, sal_uInt8 nAlpha)
 
 BPixel (const BColor &rColor, sal_uInt8 nAlpha)
 
sal_uInt8 getRed () const
 
sal_uInt8 getGreen () const
 
sal_uInt8 getBlue () const
 
sal_uInt8 getAlpha () const
 
void setRed (sal_uInt8 nNew)
 
void setGreen (sal_uInt8 nNew)
 
void setBlue (sal_uInt8 nNew)
 
void setAlpha (sal_uInt8 nNew)
 
bool operator== (const BPixel &rPixel) const
 
bool operator!= (const BPixel &rPixel) const
 

Private Attributes

union {
   struct {
      unsigned   mnR: 8
 
      unsigned   mnG: 8
 
      unsigned   mnB: 8
 
      unsigned   mnA: 8
 
   }   maRGBA
 
   struct {
      unsigned   mnValue: 32
 
   }   maCombinedRGBA
 
maPixelUnion
 

Detailed Description

Definition at line 27 of file bpixel.hxx.

Constructor & Destructor Documentation

◆ BPixel() [1/3]

basegfx::BPixel::BPixel ( )
inline

Definition at line 46 of file bpixel.hxx.

References maPixelUnion.

◆ BPixel() [2/3]

basegfx::BPixel::BPixel ( sal_uInt8  nRed,
sal_uInt8  nGreen,
sal_uInt8  nBlue,
sal_uInt8  nAlpha 
)
inlineexplicit

Definition at line 53 of file bpixel.hxx.

References maPixelUnion.

◆ BPixel() [3/3]

basegfx::BPixel::BPixel ( const BColor rColor,
sal_uInt8  nAlpha 
)
inline

Member Function Documentation

◆ getAlpha()

sal_uInt8 basegfx::BPixel::getAlpha ( ) const
inline

Definition at line 75 of file bpixel.hxx.

References maPixelUnion.

◆ getBlue()

sal_uInt8 basegfx::BPixel::getBlue ( ) const
inline

Definition at line 74 of file bpixel.hxx.

References maPixelUnion.

◆ getGreen()

sal_uInt8 basegfx::BPixel::getGreen ( ) const
inline

Definition at line 73 of file bpixel.hxx.

References maPixelUnion.

◆ getRed()

sal_uInt8 basegfx::BPixel::getRed ( ) const
inline

Definition at line 72 of file bpixel.hxx.

References maPixelUnion.

◆ operator!=()

bool basegfx::BPixel::operator!= ( const BPixel rPixel) const
inline

Definition at line 89 of file bpixel.hxx.

References maCombinedRGBA, maPixelUnion, and mnValue.

◆ operator==()

bool basegfx::BPixel::operator== ( const BPixel rPixel) const
inline

Definition at line 84 of file bpixel.hxx.

References maCombinedRGBA, maPixelUnion, and mnValue.

◆ setAlpha()

void basegfx::BPixel::setAlpha ( sal_uInt8  nNew)
inline

Definition at line 81 of file bpixel.hxx.

References maPixelUnion.

◆ setBlue()

void basegfx::BPixel::setBlue ( sal_uInt8  nNew)
inline

Definition at line 80 of file bpixel.hxx.

References maPixelUnion.

◆ setGreen()

void basegfx::BPixel::setGreen ( sal_uInt8  nNew)
inline

Definition at line 79 of file bpixel.hxx.

References maPixelUnion.

◆ setRed()

void basegfx::BPixel::setRed ( sal_uInt8  nNew)
inline

Definition at line 78 of file bpixel.hxx.

References maPixelUnion.

Member Data Documentation

◆ 

struct { ... } basegfx::BPixel::maCombinedRGBA

Referenced by operator!=(), and operator==().

◆ 

union { ... } basegfx::BPixel::maPixelUnion

◆ 

struct { ... } basegfx::BPixel::maRGBA

◆ mnA

unsigned basegfx::BPixel::mnA

Definition at line 36 of file bpixel.hxx.

◆ mnB

unsigned basegfx::BPixel::mnB

Definition at line 35 of file bpixel.hxx.

◆ mnG

unsigned basegfx::BPixel::mnG

Definition at line 34 of file bpixel.hxx.

◆ mnR

unsigned basegfx::BPixel::mnR

Definition at line 33 of file bpixel.hxx.

◆ mnValue

unsigned basegfx::BPixel::mnValue

Definition at line 41 of file bpixel.hxx.

Referenced by operator!=(), and operator==().


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