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

#include <gradient.hxx>

Collaboration diagram for Gradient:
[legend]

Classes

class  Impl
 

Public Member Functions

 Gradient ()
 
 Gradient (const Gradient &rGradient)
 
 Gradient (Gradient &&rGradient)
 
 Gradient (css::awt::GradientStyle eStyle, const Color &rStartColor, const Color &rEndColor)
 
 ~Gradient ()
 
void SetStyle (css::awt::GradientStyle eStyle)
 
css::awt::GradientStyle GetStyle () const
 
void SetStartColor (const Color &rColor)
 
const ColorGetStartColor () const
 
void SetEndColor (const Color &rColor)
 
const ColorGetEndColor () const
 
void MakeGrayscale ()
 
void SetAngle (Degree10 nAngle)
 
Degree10 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
 
void AddGradientActions (tools::Rectangle const &rRect, GDIMetaFile &rMetaFile)
 
Gradientoperator= (const Gradient &rGradient)
 
Gradientoperator= (Gradient &&rGradient)
 
bool operator== (const Gradient &rGradient) const
 
bool operator!= (const Gradient &rGradient) const
 

Private Member Functions

tools::Long GetMetafileSteps (tools::Rectangle const &rRect) const
 
void DrawComplexGradientToMetafile (tools::Rectangle const &rRect, GDIMetaFile &rMetaFile) const
 
void DrawLinearGradientToMetafile (tools::Rectangle const &rRect, GDIMetaFile &rMetaFile) const
 

Private Attributes

::o3tl::cow_wrapper< ImplmpImplGradient
 

Detailed Description

Definition at line 39 of file gradient.hxx.

Constructor & Destructor Documentation

◆ Gradient() [1/4]

Gradient::Gradient ( )
default

◆ Gradient() [2/4]

Gradient::Gradient ( const Gradient rGradient)
default

◆ Gradient() [3/4]

Gradient::Gradient ( Gradient &&  rGradient)
default

◆ Gradient() [4/4]

Gradient::Gradient ( css::awt::GradientStyle  eStyle,
const Color rStartColor,
const Color rEndColor 
)

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

References mpImplGradient.

◆ ~Gradient()

Gradient::~Gradient ( )
default

References GetAngle().

Member Function Documentation

◆ AddGradientActions()

void Gradient::AddGradientActions ( tools::Rectangle const &  rRect,
GDIMetaFile rMetaFile 
)

◆ DrawComplexGradientToMetafile()

void Gradient::DrawComplexGradientToMetafile ( tools::Rectangle const &  rRect,
GDIMetaFile rMetaFile 
) const
private

◆ DrawLinearGradientToMetafile()

void Gradient::DrawLinearGradientToMetafile ( tools::Rectangle const &  rRect,
GDIMetaFile rMetaFile 
) const
private

◆ GetAngle()

Degree10 Gradient::GetAngle ( ) const

◆ GetBorder()

sal_uInt16 Gradient::GetBorder ( ) const

◆ GetBoundRect()

void Gradient::GetBoundRect ( const tools::Rectangle rRect,
tools::Rectangle rBoundRect,
Point rCenter 
) const

◆ GetEndColor()

const Color & Gradient::GetEndColor ( ) const

◆ GetEndIntensity()

sal_uInt16 Gradient::GetEndIntensity ( ) const

◆ GetMetafileSteps()

tools::Long Gradient::GetMetafileSteps ( tools::Rectangle const &  rRect) const
private

◆ GetOfsX()

sal_uInt16 Gradient::GetOfsX ( ) const

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

References mpImplGradient.

Referenced by GetBoundRect(), and TypeSerializer::writeGradient().

◆ GetOfsY()

sal_uInt16 Gradient::GetOfsY ( ) const

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

References mpImplGradient.

Referenced by GetBoundRect(), and TypeSerializer::writeGradient().

◆ GetStartColor()

const Color & Gradient::GetStartColor ( ) const

◆ GetStartIntensity()

sal_uInt16 Gradient::GetStartIntensity ( ) const

◆ GetSteps()

sal_uInt16 Gradient::GetSteps ( ) const

◆ GetStyle()

css::awt::GradientStyle Gradient::GetStyle ( ) const

◆ MakeGrayscale()

void Gradient::MakeGrayscale ( )

◆ operator!=()

bool Gradient::operator!= ( const Gradient rGradient) const
inline

Definition at line 88 of file gradient.hxx.

References operator==().

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

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

References mpImplGradient.

Referenced by operator!=().

◆ SetAngle()

void Gradient::SetAngle ( Degree10  nAngle)

◆ SetBorder()

void Gradient::SetBorder ( sal_uInt16  nBorder)

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

References mpImplGradient, and nBorder.

Referenced by SVMConverter::ImplConvertFromSVM1(), and TypeSerializer::readGradient().

◆ SetEndColor()

void Gradient::SetEndColor ( const Color rColor)

◆ SetEndIntensity()

void Gradient::SetEndIntensity ( sal_uInt16  nIntens)

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

References mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1(), and TypeSerializer::readGradient().

◆ SetOfsX()

void Gradient::SetOfsX ( sal_uInt16  nOfsX)

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

References mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1(), and TypeSerializer::readGradient().

◆ SetOfsY()

void Gradient::SetOfsY ( sal_uInt16  nOfsY)

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

References mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1(), and TypeSerializer::readGradient().

◆ SetStartColor()

void Gradient::SetStartColor ( const Color rColor)

◆ SetStartIntensity()

void Gradient::SetStartIntensity ( sal_uInt16  nIntens)

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

References mpImplGradient.

Referenced by SVMConverter::ImplConvertFromSVM1(), and TypeSerializer::readGradient().

◆ SetSteps()

void Gradient::SetSteps ( sal_uInt16  nSteps)

◆ SetStyle()

void Gradient::SetStyle ( css::awt::GradientStyle  eStyle)

Member Data Documentation

◆ mpImplGradient

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

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