LibreOffice Module vcl (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
psp::PrinterColor Class Reference

#include <printergfx.hxx>

Public Types

enum class  ColorSpace {
  eInvalid ,
  eRGB
}
 

Public Member Functions

 PrinterColor ()
 
 PrinterColor (sal_uInt16 nRed, sal_uInt16 nGreen, sal_uInt16 nBlue)
 
 PrinterColor (sal_uInt32 nRGB)
 
bool Is () const
 
sal_uInt16 GetRed () const
 
sal_uInt16 GetGreen () const
 
sal_uInt16 GetBlue () const
 
bool operator== (const PrinterColor &aColor) const
 
bool operator!= (const PrinterColor &aColor) const
 
PrinterColoroperator= (sal_uInt32 nRGB)
 

Private Attributes

sal_uInt8 mnRed
 
sal_uInt8 mnGreen
 
sal_uInt8 mnBlue
 
ColorSpace meColorspace
 

Detailed Description

Definition at line 42 of file printergfx.hxx.

Member Enumeration Documentation

◆ ColorSpace

enum class psp::PrinterColor::ColorSpace
strong
Enumerator
eInvalid 
eRGB 

Definition at line 46 of file printergfx.hxx.

Constructor & Destructor Documentation

◆ PrinterColor() [1/3]

psp::PrinterColor::PrinterColor ( )
inline

Definition at line 57 of file printergfx.hxx.

◆ PrinterColor() [2/3]

psp::PrinterColor::PrinterColor ( sal_uInt16  nRed,
sal_uInt16  nGreen,
sal_uInt16  nBlue 
)
inline

Definition at line 63 of file printergfx.hxx.

◆ PrinterColor() [3/3]

psp::PrinterColor::PrinterColor ( sal_uInt32  nRGB)
inline

Definition at line 70 of file printergfx.hxx.

Member Function Documentation

◆ GetBlue()

sal_uInt16 psp::PrinterColor::GetBlue ( ) const
inline

Definition at line 84 of file printergfx.hxx.

References mnBlue.

◆ GetGreen()

sal_uInt16 psp::PrinterColor::GetGreen ( ) const
inline

Definition at line 82 of file printergfx.hxx.

References mnGreen.

◆ GetRed()

sal_uInt16 psp::PrinterColor::GetRed ( ) const
inline

Definition at line 80 of file printergfx.hxx.

References mnRed.

◆ Is()

bool psp::PrinterColor::Is ( ) const
inline

Definition at line 77 of file printergfx.hxx.

References eInvalid, and meColorspace.

Referenced by operator==().

◆ operator!=()

bool psp::PrinterColor::operator!= ( const PrinterColor aColor) const
inline

Definition at line 93 of file printergfx.hxx.

◆ operator=()

PrinterColor & psp::PrinterColor::operator= ( sal_uInt32  nRGB)
inline

Definition at line 96 of file printergfx.hxx.

References eRGB, meColorspace, mnBlue, mnGreen, and mnRed.

◆ operator==()

bool psp::PrinterColor::operator== ( const PrinterColor aColor) const
inline

Definition at line 86 of file printergfx.hxx.

References Is(), mnBlue, mnGreen, and mnRed.

Member Data Documentation

◆ meColorspace

ColorSpace psp::PrinterColor::meColorspace
private

Definition at line 53 of file printergfx.hxx.

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

◆ mnBlue

sal_uInt8 psp::PrinterColor::mnBlue
private

Definition at line 52 of file printergfx.hxx.

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

◆ mnGreen

sal_uInt8 psp::PrinterColor::mnGreen
private

Definition at line 51 of file printergfx.hxx.

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

◆ mnRed

sal_uInt8 psp::PrinterColor::mnRed
private

Definition at line 50 of file printergfx.hxx.

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


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