LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
XFColor Class Reference

Color object. More...

#include <xfcolor.hxx>

Public Member Functions

 XFColor ()
 
 XFColor (sal_Int32 red, sal_Int32 green, sal_Int32 blue)
 
 XFColor (sal_uInt32 color)
 
bool IsValid () const
 @descr helper function to assert whether a color is valid. More...
 
OUString ToString () const
 

Private Attributes

sal_uInt8 m_nRed
 
sal_uInt8 m_nGreen
 
sal_uInt8 m_nBlue
 
bool m_bValid
 

Friends

bool operator== (XFColor const &c1, XFColor const &c2)
 
bool operator!= (XFColor const &c1, XFColor const &c2)
 

Detailed Description

Color object.

Definition at line 69 of file xfcolor.hxx.

Constructor & Destructor Documentation

◆ XFColor() [1/3]

XFColor::XFColor ( )
inline

Definition at line 72 of file xfcolor.hxx.

References m_bValid.

◆ XFColor() [2/3]

XFColor::XFColor ( sal_Int32  red,
sal_Int32  green,
sal_Int32  blue 
)
inline

Definition at line 76 of file xfcolor.hxx.

References m_bValid.

◆ XFColor() [3/3]

XFColor::XFColor ( sal_uInt32  color)
inlineexplicit

Definition at line 81 of file xfcolor.hxx.

References m_bValid, m_nBlue, m_nGreen, and m_nRed.

Member Function Documentation

◆ IsValid()

bool XFColor::IsValid ( ) const
inline

◆ ToString()

OUString XFColor::ToString ( ) const

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( XFColor const &  c1,
XFColor const &  c2 
)
friend

Definition at line 84 of file xfcolor.cxx.

◆ operator==

bool operator== ( XFColor const &  c1,
XFColor const &  c2 
)
friend

Definition at line 75 of file xfcolor.cxx.

Member Data Documentation

◆ m_bValid

bool XFColor::m_bValid
private

Definition at line 109 of file xfcolor.hxx.

Referenced by IsValid(), and XFColor().

◆ m_nBlue

sal_uInt8 XFColor::m_nBlue
private

Definition at line 108 of file xfcolor.hxx.

Referenced by ToString(), and XFColor().

◆ m_nGreen

sal_uInt8 XFColor::m_nGreen
private

Definition at line 107 of file xfcolor.hxx.

Referenced by ToString(), and XFColor().

◆ m_nRed

sal_uInt8 XFColor::m_nRed
private

Definition at line 106 of file xfcolor.hxx.

Referenced by ToString(), and XFColor().


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