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

Class to hold a stack of BColorModifierSharedPtrs and to get the modified color with applying all existing entry changes as defined in the stack. More...

#include <bcolormodifier.hxx>

Public Member Functions

sal_uInt32 count () const
 
const BColorModifierSharedPtrgetBColorModifier (sal_uInt32 nIndex) const
 
::basegfx::BColor getModifiedColor (const ::basegfx::BColor &rSource) const
 
void push (const BColorModifierSharedPtr &rNew)
 
void pop ()
 

Private Attributes

::std::vector< BColorModifierSharedPtrmaBColorModifiers
 

Detailed Description

Class to hold a stack of BColorModifierSharedPtrs and to get the modified color with applying all existing entry changes as defined in the stack.

Instances of BColorModifier can be pushed and popped to change the stack.

All references to BColorModifier members use shared pointers, thus instances of BColorModifierStack can be copied by the default mechanisms if needed.

Definition at line 415 of file bcolormodifier.hxx.

Member Function Documentation

◆ count()

sal_uInt32 basegfx::BColorModifierStack::count ( ) const
inline

Definition at line 420 of file bcolormodifier.hxx.

◆ getBColorModifier()

const BColorModifierSharedPtr & basegfx::BColorModifierStack::getBColorModifier ( sal_uInt32  nIndex) const
inline

Definition at line 425 of file bcolormodifier.hxx.

References count, and nIndex.

◆ getModifiedColor()

basegfx::BColor basegfx::BColorModifierStack::getModifiedColor ( const ::basegfx::BColor rSource) const

Definition at line 520 of file bcolormodifier.cxx.

References a, and maBColorModifiers.

◆ pop()

void basegfx::BColorModifierStack::pop ( )
inline

Definition at line 440 of file bcolormodifier.hxx.

◆ push()

void basegfx::BColorModifierStack::push ( const BColorModifierSharedPtr rNew)
inline

Definition at line 435 of file bcolormodifier.hxx.

Member Data Documentation

◆ maBColorModifiers

::std::vector< BColorModifierSharedPtr > basegfx::BColorModifierStack::maBColorModifiers
private

Definition at line 417 of file bcolormodifier.hxx.

Referenced by getModifiedColor().


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