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

#include <bgradient.hxx>

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

Classes

struct  BColorStopRange
 

Public Member Functions

 BColorStops ()
 
 BColorStops (const BColorStops &other)
 
 BColorStops (BColorStops &&other) noexcept
 
 BColorStops (std::initializer_list< BColorStop > init)
 
 BColorStops (const_iterator first, const_iterator last)
 
 BColorStops (const css::awt::ColorStopSequence &rColorStops)
 
 BColorStops (const css::uno::Any &rVal)
 
 BColorStops (const BColor &rStart, const BColor &rEnd)
 
BColorStopsoperator= (const BColorStops &r)
 
BColorStopsoperator= (BColorStops &&r) noexcept
 
BColor getInterpolatedBColor (double fPosition, sal_uInt32 nRequestedSteps, BColorStopRange &rLastColorStopRange) const
 
void replaceStartColor (const BColor &rStart)
 
void replaceEndColor (const BColor &rEnd)
 
void blendToIntensity (double fStartIntensity, double fEndIntensity, const BColor &rBlendColor)
 
void sortAndCorrect ()
 
bool checkPenultimate () const
 
css::awt::ColorStopSequence getAsColorStopSequence () const
 
bool isSingleColor (BColor &rSingleColor) const
 
void reverseColorStops ()
 
void createSpaceAtStart (double fOffset)
 
void removeSpaceAtStart (double fOffset)
 
double detectPossibleOffsetAtStart () const
 
bool isSymmetrical () const
 
void doApplyAxial ()
 
void doApplySteps (sal_uInt16 nStepCount)
 

Private Member Functions

void setColorStopSequence (const css::awt::ColorStopSequence &rColorStops)
 

Detailed Description

Definition at line 110 of file bgradient.hxx.

Constructor & Destructor Documentation

◆ BColorStops() [1/8]

basegfx::BColorStops::BColorStops ( )
inlineexplicit

Definition at line 116 of file bgradient.hxx.

◆ BColorStops() [2/8]

basegfx::BColorStops::BColorStops ( const BColorStops other)
inline

Definition at line 120 of file bgradient.hxx.

◆ BColorStops() [3/8]

basegfx::BColorStops::BColorStops ( BColorStops &&  other)
inlinenoexcept

Definition at line 124 of file bgradient.hxx.

◆ BColorStops() [4/8]

basegfx::BColorStops::BColorStops ( std::initializer_list< BColorStop init)
inline

Definition at line 128 of file bgradient.hxx.

References init().

◆ BColorStops() [5/8]

basegfx::BColorStops::BColorStops ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 132 of file bgradient.hxx.

References first, and last.

◆ BColorStops() [6/8]

basegfx::BColorStops::BColorStops ( const css::awt::ColorStopSequence &  rColorStops)

Definition at line 90 of file bgradient.cxx.

References setColorStopSequence().

◆ BColorStops() [7/8]

basegfx::BColorStops::BColorStops ( const css::uno::Any &  rVal)

Definition at line 95 of file bgradient.cxx.

References setColorStopSequence().

◆ BColorStops() [8/8]

basegfx::BColorStops::BColorStops ( const BColor rStart,
const BColor rEnd 
)

Definition at line 108 of file bgradient.cxx.

Member Function Documentation

◆ blendToIntensity()

void basegfx::BColorStops::blendToIntensity ( double  fStartIntensity,
double  fEndIntensity,
const BColor rBlendColor 
)

◆ checkPenultimate()

bool basegfx::BColorStops::checkPenultimate ( ) const

Definition at line 471 of file bgradient.cxx.

References basegfx::fTools::equal(), and basegfx::fTools::moreOrEqual().

◆ createSpaceAtStart()

void basegfx::BColorStops::createSpaceAtStart ( double  fOffset)

Definition at line 568 of file bgradient.cxx.

References basegfx::fTools::equalZero().

Referenced by basegfx::BGradient::tryToApplyBorder().

◆ detectPossibleOffsetAtStart()

double basegfx::BColorStops::detectPossibleOffsetAtStart ( ) const

Definition at line 625 of file bgradient.cxx.

References begin, end, and isSingleColor().

Referenced by basegfx::BGradient::tryToRecreateBorder().

◆ doApplyAxial()

void basegfx::BColorStops::doApplyAxial ( )

Definition at line 682 of file bgradient.cxx.

References begin, end, and basegfx::fTools::equalZero().

Referenced by basegfx::BGradient::tryToApplyAxial().

◆ doApplySteps()

void basegfx::BColorStops::doApplySteps ( sal_uInt16  nStepCount)

◆ getAsColorStopSequence()

css::awt::ColorStopSequence basegfx::BColorStops::getAsColorStopSequence ( ) const

Definition at line 505 of file bgradient.cxx.

References size.

Referenced by basegfx::BGradient::getAsGradient2().

◆ getInterpolatedBColor()

BColor basegfx::BColorStops::getInterpolatedBColor ( double  fPosition,
sal_uInt32  nRequestedSteps,
BColorStopRange rLastColorStopRange 
) const

◆ isSingleColor()

bool basegfx::BColorStops::isSingleColor ( BColor rSingleColor) const

Definition at line 530 of file bgradient.cxx.

References size.

Referenced by detectPossibleOffsetAtStart(), doApplySteps(), and basegfx::utils::prepareColorStops().

◆ isSymmetrical()

bool basegfx::BColorStops::isSymmetrical ( ) const

Definition at line 661 of file bgradient.cxx.

References begin, end, equal(), basegfx::fTools::equal(), and size.

◆ operator=() [1/2]

BColorStops & basegfx::BColorStops::operator= ( BColorStops &&  r)
inlinenoexcept

Definition at line 150 of file bgradient.hxx.

◆ operator=() [2/2]

BColorStops & basegfx::BColorStops::operator= ( const BColorStops r)
inline

Definition at line 145 of file bgradient.hxx.

◆ removeSpaceAtStart()

void basegfx::BColorStops::removeSpaceAtStart ( double  fOffset)

◆ replaceEndColor()

void basegfx::BColorStops::replaceEndColor ( const BColor rEnd)

Definition at line 260 of file bgradient.cxx.

References basegfx::fTools::moreOrEqual().

◆ replaceStartColor()

void basegfx::BColorStops::replaceStartColor ( const BColor rStart)

Definition at line 232 of file bgradient.cxx.

References begin, end, basegfx::fTools::lessOrEqual(), and size.

◆ reverseColorStops()

void basegfx::BColorStops::reverseColorStops ( )

◆ setColorStopSequence()

void basegfx::BColorStops::setColorStopSequence ( const css::awt::ColorStopSequence &  rColorStops)
private

Definition at line 71 of file bgradient.cxx.

References a.

Referenced by BColorStops().

◆ sortAndCorrect()

void basegfx::BColorStops::sortAndCorrect ( )

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