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() [1/2]

RGBAColor::RGBAColor ( ::Color  nColor)
inline

Definition at line 54 of file salgdicommon.hxx.

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

◆ RGBAColor() [2/2]

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

◆ AsArray()

const CGFloat * RGBAColor::AsArray ( ) const
inline

Definition at line 42 of file salgdicommon.hxx.

References m_fRGBA.

◆ GetAlpha()

CGFloat RGBAColor::GetAlpha ( ) const
inline

Definition at line 49 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

◆ GetBlue()

CGFloat RGBAColor::GetBlue ( ) const
inline

Definition at line 48 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

◆ GetGreen()

CGFloat RGBAColor::GetGreen ( ) const
inline

Definition at line 47 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

◆ GetRed()

CGFloat RGBAColor::GetRed ( ) const
inline

Definition at line 46 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by operator<<().

◆ IsVisible()

bool RGBAColor::IsVisible ( ) const
inline

Definition at line 43 of file salgdicommon.hxx.

References m_fRGBA.

Referenced by AquaSharedAttributes::isBrushVisible(), and AquaSharedAttributes::isPenVisible().

◆ SetAlpha()

void RGBAColor::SetAlpha ( float  fAlpha)
inline

Definition at line 44 of file salgdicommon.hxx.

References m_fRGBA.

Member Data Documentation

◆ m_fRGBA

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: