LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
RGBAColor Class Reference

#include <salgdicommon.hxx>

Public Member Functions

 RGBAColor (::Color)
 
 RGBAColor (float fRed, float fGreen, float fBlue, float fAlpha)
 
const CGFloat * AsArray () const
 
bool IsVisible () const
 
void SetAlpha (float fAlpha)
 
CGFloat GetRed () const
 
CGFloat GetGreen () const
 
CGFloat GetBlue () const
 
CGFloat GetAlpha () const
 

Private Attributes

CGFloat m_fRGBA [4]
 

Detailed Description

Definition at line 37 of file salgdicommon.hxx.

Constructor & Destructor Documentation

RGBAColor::RGBAColor ( ::Color  nColor)
inline

Definition at line 54 of file salgdicommon.hxx.

References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and m_fRGBA.

RGBAColor::RGBAColor ( float  fRed,
float  fGreen,
float  fBlue,
float  fAlpha 
)
inline

Definition at line 62 of file salgdicommon.hxx.

References m_fRGBA.

Member Function Documentation

const CGFloat* RGBAColor::AsArray ( ) const
inline

Definition at line 42 of file salgdicommon.hxx.

References m_fRGBA.

CGFloat RGBAColor::GetAlpha ( ) const
inline

Definition at line 49 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

CGFloat RGBAColor::GetBlue ( ) const
inline

Definition at line 48 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

CGFloat RGBAColor::GetGreen ( ) const
inline

Definition at line 47 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

CGFloat RGBAColor::GetRed ( ) const
inline

Definition at line 46 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

bool RGBAColor::IsVisible ( ) const
inline

Definition at line 43 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by AquaSalGraphics::IsBrushVisible(), and AquaSalGraphics::IsPenVisible().

void RGBAColor::SetAlpha ( float  fAlpha)
inline

Definition at line 44 of file salgdicommon.hxx.

References m_fRGBA.

Member Data Documentation

CGFloat RGBAColor::m_fRGBA[4]
private

Definition at line 51 of file salgdicommon.hxx.

Referenced by AsArray(), GetAlpha(), GetBlue(), GetGreen(), GetRed(), IsVisible(), RGBAColor(), and SetAlpha().


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