LibreOffice Module basegfx (master) 1
|
#include <bgradient.hxx>
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) | |
BColorStops & | operator= (const BColorStops &r) |
BColorStops & | operator= (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) |
Definition at line 110 of file bgradient.hxx.
|
inlineexplicit |
Definition at line 116 of file bgradient.hxx.
|
inline |
Definition at line 120 of file bgradient.hxx.
|
inlinenoexcept |
Definition at line 124 of file bgradient.hxx.
|
inline |
Definition at line 128 of file bgradient.hxx.
References init().
|
inline |
Definition at line 132 of file bgradient.hxx.
basegfx::BColorStops::BColorStops | ( | const css::awt::ColorStopSequence & | rColorStops | ) |
Definition at line 90 of file bgradient.cxx.
References setColorStopSequence().
basegfx::BColorStops::BColorStops | ( | const css::uno::Any & | rVal | ) |
Definition at line 95 of file bgradient.cxx.
References setColorStopSequence().
Definition at line 108 of file bgradient.cxx.
void basegfx::BColorStops::blendToIntensity | ( | double | fStartIntensity, |
double | fEndIntensity, | ||
const BColor & | rBlendColor | ||
) |
Definition at line 283 of file bgradient.cxx.
References basegfx::fTools::equal(), and basegfx::interpolate().
Referenced by basegfx::BGradient::tryToApplyStartEndIntensity().
bool basegfx::BColorStops::checkPenultimate | ( | ) | const |
Definition at line 471 of file bgradient.cxx.
References basegfx::fTools::equal(), and basegfx::fTools::moreOrEqual().
void basegfx::BColorStops::createSpaceAtStart | ( | double | fOffset | ) |
Definition at line 568 of file bgradient.cxx.
References basegfx::fTools::equalZero().
Referenced by basegfx::BGradient::tryToApplyBorder().
double basegfx::BColorStops::detectPossibleOffsetAtStart | ( | ) | const |
Definition at line 625 of file bgradient.cxx.
References begin, end, and isSingleColor().
Referenced by basegfx::BGradient::tryToRecreateBorder().
void basegfx::BColorStops::doApplyAxial | ( | ) |
Definition at line 682 of file bgradient.cxx.
References begin, end, and basegfx::fTools::equalZero().
Referenced by basegfx::BGradient::tryToApplyAxial().
void basegfx::BColorStops::doApplySteps | ( | sal_uInt16 | nStepCount | ) |
Definition at line 720 of file bgradient.cxx.
References a, begin, end, basegfx::fTools::equalZero(), basegfx::interpolate(), and isSingleColor().
Referenced by basegfx::BGradient::tryToApplySteps().
css::awt::ColorStopSequence basegfx::BColorStops::getAsColorStopSequence | ( | ) | const |
Definition at line 505 of file bgradient.cxx.
References size.
Referenced by basegfx::BGradient::getAsGradient2().
BColor basegfx::BColorStops::getInterpolatedBColor | ( | double | fPosition, |
sal_uInt32 | nRequestedSteps, | ||
BColorStopRange & | rLastColorStopRange | ||
) | const |
Definition at line 119 of file bgradient.cxx.
References begin, basegfx::utils::calculateNumberOfSteps(), end, basegfx::fTools::equal(), basegfx::interpolate(), basegfx::BColorStops::BColorStopRange::maColorEnd, basegfx::BColorStops::BColorStopRange::maColorStart, basegfx::BColorStops::BColorStopRange::mfOffsetEnd, basegfx::BColorStops::BColorStopRange::mfOffsetStart, size, x, and y.
Referenced by basegfx::utils::synchronizeColorStops().
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().
bool basegfx::BColorStops::isSymmetrical | ( | ) | const |
Definition at line 661 of file bgradient.cxx.
References begin, end, equal(), basegfx::fTools::equal(), and size.
|
inlinenoexcept |
Definition at line 150 of file bgradient.hxx.
|
inline |
Definition at line 145 of file bgradient.hxx.
void basegfx::BColorStops::removeSpaceAtStart | ( | double | fOffset | ) |
Definition at line 595 of file bgradient.cxx.
References basegfx::fTools::equal(), basegfx::fTools::equalZero(), and basegfx::fTools::moreOrEqual().
Referenced by basegfx::BGradient::tryToRecreateBorder().
void basegfx::BColorStops::replaceEndColor | ( | const BColor & | rEnd | ) |
Definition at line 260 of file bgradient.cxx.
References basegfx::fTools::moreOrEqual().
void basegfx::BColorStops::replaceStartColor | ( | const BColor & | rStart | ) |
Definition at line 232 of file bgradient.cxx.
References begin, end, basegfx::fTools::lessOrEqual(), and size.
void basegfx::BColorStops::reverseColorStops | ( | ) |
Definition at line 558 of file bgradient.cxx.
Referenced by basegfx::BGradient::tryToApplyBorder(), basegfx::BGradient::tryToConvertToAxial(), and basegfx::BGradient::tryToRecreateBorder().
|
private |
void basegfx::BColorStops::sortAndCorrect | ( | ) |
Definition at line 334 of file bgradient.cxx.
References begin, end, basegfx::BColorStop::getStopColor(), basegfx::BColorStop::getStopOffset(), basegfx::interpolate(), basegfx::fTools::less(), basegfx::fTools::more(), and size.
Referenced by basegfx::BGradient::SetColorStops(), and basegfx::BGradient::setGradient2().