LibreOffice Module basegfx (master) 1
Public Member Functions | Private Attributes | List of all members
basegfx::BColorModifier_replace Class Referencefinal

replace color More...

#include <bcolormodifier.hxx>

Inheritance diagram for basegfx::BColorModifier_replace:
[legend]
Collaboration diagram for basegfx::BColorModifier_replace:
[legend]

Public Member Functions

 BColorModifier_replace (const ::basegfx::BColor &rBColor)
 
virtual ~BColorModifier_replace () override
 
const ::basegfx::BColorgetBColor () const
 
virtual SAL_DLLPRIVATE bool operator== (const BColorModifier &rCompare) const override
 
virtual SAL_DLLPRIVATE ::basegfx::BColor getModifiedColor (const ::basegfx::BColor &aSourceColor) const override
 
- Public Member Functions inherited from basegfx::BColorModifier
virtual ~BColorModifier ()
 
virtual bool operator== (const BColorModifier &rCompare) const =0
 
bool operator!= (const BColorModifier &rCompare) const
 
virtual ::basegfx::BColor getModifiedColor (const ::basegfx::BColor &aSourceColor) const =0
 

Private Attributes

::basegfx::BColor maBColor
 

Additional Inherited Members

- Protected Member Functions inherited from basegfx::BColorModifier
 BColorModifier ()
 

Detailed Description

replace color

does not use the source color at all, but always returns the given color, replacing everything. Useful e.g. for unified shadow creation

Definition at line 153 of file bcolormodifier.hxx.

Constructor & Destructor Documentation

◆ BColorModifier_replace()

basegfx::BColorModifier_replace::BColorModifier_replace ( const ::basegfx::BColor rBColor)
inline

Definition at line 159 of file bcolormodifier.hxx.

◆ ~BColorModifier_replace()

basegfx::BColorModifier_replace::~BColorModifier_replace ( )
overridevirtual

Definition at line 78 of file bcolormodifier.cxx.

Member Function Documentation

◆ getBColor()

const ::basegfx::BColor & basegfx::BColorModifier_replace::getBColor ( ) const
inline

Definition at line 167 of file bcolormodifier.hxx.

Referenced by operator==().

◆ getModifiedColor()

basegfx::BColor basegfx::BColorModifier_replace::getModifiedColor ( const ::basegfx::BColor aSourceColor) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 94 of file bcolormodifier.cxx.

References maBColor.

◆ operator==()

bool basegfx::BColorModifier_replace::operator== ( const BColorModifier rCompare) const
overridevirtual

Implements basegfx::BColorModifier.

Definition at line 82 of file bcolormodifier.cxx.

References getBColor().

Member Data Documentation

◆ maBColor

::basegfx::BColor basegfx::BColorModifier_replace::maBColor
private

Definition at line 156 of file bcolormodifier.hxx.

Referenced by getModifiedColor().


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