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

#include <gradient.hxx>

Collaboration diagram for Gradient:
[legend]

Public Member Functions

 Gradient ()
 
 Gradient (const Gradient &rGradient)
 
 Gradient (Gradient &&rGradient)
 
 Gradient (GradientStyle eStyle, const Color &rStartColor, const Color &rEndColor)
 
 ~Gradient ()
 
void SetStyle (GradientStyle eStyle)
 
GradientStyle GetStyle () const
 
void SetStartColor (const Color &rColor)
 
const ColorGetStartColor () const
 
void SetEndColor (const Color &rColor)
 
const ColorGetEndColor () const
 
void SetAngle (sal_uInt16 nAngle)
 
sal_uInt16 GetAngle () const
 
void SetBorder (sal_uInt16 nBorder)
 
sal_uInt16 GetBorder () const
 
void SetOfsX (sal_uInt16 nOfsX)
 
sal_uInt16 GetOfsX () const
 
void SetOfsY (sal_uInt16 nOfsY)
 
sal_uInt16 GetOfsY () const
 
void SetStartIntensity (sal_uInt16 nIntens)
 
sal_uInt16 GetStartIntensity () const
 
void SetEndIntensity (sal_uInt16 nIntens)
 
sal_uInt16 GetEndIntensity () const
 
void SetSteps (sal_uInt16 nSteps)
 
sal_uInt16 GetSteps () const
 
void GetBoundRect (const tools::Rectangle &rRect, tools::Rectangle &rBoundRect, Point &rCenter) const
 
Gradientoperator= (const Gradient &rGradient)
 
Gradientoperator= (Gradient &&rGradient)
 
bool operator== (const Gradient &rGradient) const
 
bool operator!= (const Gradient &rGradient) const
 

Private Attributes

::o3tl::cow_wrapper< Impl_GradientmpImplGradient
 

Friends

VCL_DLLPUBLIC SvStreamReadGradient (SvStream &rIStm, Gradient &rGradient)
 
VCL_DLLPUBLIC SvStreamWriteGradient (SvStream &rOStm, const Gradient &rGradient)
 

Detailed Description

Definition at line 59 of file gradient.hxx.

Constructor & Destructor Documentation

Gradient::Gradient ( )
default
Gradient::Gradient ( const Gradient rGradient)
default
Gradient::Gradient ( Gradient &&  rGradient)
default
Gradient::Gradient ( GradientStyle  eStyle,
const Color rStartColor,
const Color rEndColor 
)
Gradient::~Gradient ( )
default

Member Function Documentation

sal_uInt16 Gradient::GetAngle ( ) const
inline
sal_uInt16 Gradient::GetBorder ( ) const
inline
void Gradient::GetBoundRect ( const tools::Rectangle rRect,
tools::Rectangle rBoundRect,
Point rCenter 
) const
const Color& Gradient::GetEndColor ( ) const
inline
sal_uInt16 Gradient::GetEndIntensity ( ) const
inline
sal_uInt16 Gradient::GetOfsX ( ) const
inline

Definition at line 87 of file gradient.hxx.

References Impl_Gradient::mnOfsX.

Referenced by GetBoundRect().

sal_uInt16 Gradient::GetOfsY ( ) const
inline

Definition at line 89 of file gradient.hxx.

References Impl_Gradient::mnOfsY.

Referenced by GetBoundRect().

const Color& Gradient::GetStartColor ( ) const
inline
sal_uInt16 Gradient::GetStartIntensity ( ) const
inline
sal_uInt16 Gradient::GetSteps ( ) const
inline
GradientStyle Gradient::GetStyle ( ) const
inline
bool Gradient::operator!= ( const Gradient rGradient) const
inline

Definition at line 104 of file gradient.hxx.

References operator==().

Gradient & Gradient::operator= ( const Gradient rGradient)
default
Gradient & Gradient::operator= ( Gradient &&  rGradient)
default
bool Gradient::operator== ( const Gradient rGradient) const

Definition at line 217 of file gdi/gradient.cxx.

References mpImplGradient.

Referenced by operator!=().

void Gradient::SetAngle ( sal_uInt16  nAngle)
void Gradient::SetBorder ( sal_uInt16  nBorder)

Definition at line 105 of file gdi/gradient.cxx.

References Impl_Gradient::mnBorder, and mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1().

void Gradient::SetEndColor ( const Color rColor)
void Gradient::SetEndIntensity ( sal_uInt16  nIntens)

Definition at line 125 of file gdi/gradient.cxx.

References Impl_Gradient::mnIntensityEnd, and mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1().

void Gradient::SetOfsX ( sal_uInt16  nOfsX)

Definition at line 110 of file gdi/gradient.cxx.

References Impl_Gradient::mnOfsX, and mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1().

void Gradient::SetOfsY ( sal_uInt16  nOfsY)

Definition at line 115 of file gdi/gradient.cxx.

References Impl_Gradient::mnOfsY, and mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1().

void Gradient::SetStartColor ( const Color rColor)
void Gradient::SetStartIntensity ( sal_uInt16  nIntens)

Definition at line 120 of file gdi/gradient.cxx.

References Impl_Gradient::mnIntensityStart, and mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1().

void Gradient::SetSteps ( sal_uInt16  nSteps)
void Gradient::SetStyle ( GradientStyle  eStyle)

Friends And Related Function Documentation

VCL_DLLPUBLIC SvStream& ReadGradient ( SvStream rIStm,
Gradient rGradient 
)
friend

Definition at line 222 of file gdi/gradient.cxx.

VCL_DLLPUBLIC SvStream& WriteGradient ( SvStream rOStm,
const Gradient rGradient 
)
friend

Definition at line 243 of file gdi/gradient.cxx.

Member Data Documentation

::o3tl::cow_wrapper< Impl_Gradient > Gradient::mpImplGradient
private

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