LibreOffice Module basegfx (master) 1
|
#include <bgradient.hxx>
Public Member Functions | |
BGradient () | |
BGradient (const basegfx::BColorStops &rColorStops, css::awt::GradientStyle eStyle=css::awt::GradientStyle_LINEAR, Degree10 nAngle=0_deg10, sal_uInt16 nXOfs=50, sal_uInt16 nYOfs=50, sal_uInt16 nBorder=0, sal_uInt16 nStartIntens=100, sal_uInt16 nEndIntens=100, sal_uInt16 nSteps=0) | |
BGradient (const css::awt::Gradient2 &rGradient2) | |
BGradient (const css::uno::Any &rVal) | |
bool | operator== (const BGradient &rGradient) const |
void | SetGradientStyle (css::awt::GradientStyle eNewStyle) |
void | SetColorStops (const basegfx::BColorStops &rSteps) |
void | SetAngle (Degree10 nNewAngle) |
void | SetBorder (sal_uInt16 nNewBorder) |
void | SetXOffset (sal_uInt16 nNewOffset) |
void | SetYOffset (sal_uInt16 nNewOffset) |
void | SetStartIntens (sal_uInt16 nNewIntens) |
void | SetEndIntens (sal_uInt16 nNewIntens) |
void | SetSteps (sal_uInt16 nSteps) |
css::awt::GradientStyle | GetGradientStyle () const |
const basegfx::BColorStops & | GetColorStops () const |
Degree10 | GetAngle () const |
sal_uInt16 | GetBorder () const |
sal_uInt16 | GetXOffset () const |
sal_uInt16 | GetYOffset () const |
sal_uInt16 | GetStartIntens () const |
sal_uInt16 | GetEndIntens () const |
sal_uInt16 | GetSteps () const |
boost::property_tree::ptree | dumpAsJSON () const |
css::awt::Gradient2 | getAsGradient2 () const |
Tooling method to fill awt::Gradient2 from data contained in the given basegfx::BGradient. More... | |
void | tryToRecreateBorder (basegfx::BColorStops *pAssociatedTransparencyStops=nullptr) |
void | tryToApplyBorder () |
void | tryToApplyStartEndIntensity () |
void | tryToConvertToAxial () |
void | tryToApplyAxial () |
void | tryToApplySteps () |
Static Public Member Functions | |
static BGradient | fromJSON (std::u16string_view rJSON) |
Private Member Functions | |
void | setGradient2 (const css::awt::Gradient2 &rGradient2) |
Static Private Member Functions | |
static std::string | GradientStyleToString (css::awt::GradientStyle eStyle) |
Private Attributes | |
css::awt::GradientStyle | eStyle |
basegfx::BColorStops | aColorStops |
Degree10 | nAngle |
sal_uInt16 | nBorder |
sal_uInt16 | nOfsX |
sal_uInt16 | nOfsY |
sal_uInt16 | nIntensStart |
sal_uInt16 | nIntensEnd |
sal_uInt16 | nStepCount |
Definition at line 290 of file bgradient.hxx.
basegfx::BGradient::BGradient | ( | ) |
Definition at line 828 of file bgradient.cxx.
References aColorStops, and nBorder.
basegfx::BGradient::BGradient | ( | const basegfx::BColorStops & | rColorStops, |
css::awt::GradientStyle | eStyle = css::awt::GradientStyle_LINEAR , |
||
Degree10 | nAngle = 0_deg10 , |
||
sal_uInt16 | nXOfs = 50 , |
||
sal_uInt16 | nYOfs = 50 , |
||
sal_uInt16 | nBorder = 0 , |
||
sal_uInt16 | nStartIntens = 100 , |
||
sal_uInt16 | nEndIntens = 100 , |
||
sal_uInt16 | nSteps = 0 |
||
) |
Definition at line 843 of file bgradient.cxx.
References aColorStops, nBorder, and SetColorStops().
basegfx::BGradient::BGradient | ( | const css::awt::Gradient2 & | rGradient2 | ) |
Definition at line 888 of file bgradient.cxx.
References setGradient2().
basegfx::BGradient::BGradient | ( | const css::uno::Any & | rVal | ) |
Definition at line 890 of file bgradient.cxx.
References aColorStops, SetAngle(), SetBorder(), SetEndIntens(), setGradient2(), SetGradientStyle(), SetStartIntens(), SetSteps(), SetXOffset(), and SetYOffset().
boost::property_tree::ptree basegfx::BGradient::dumpAsJSON | ( | ) | const |
Definition at line 952 of file bgradient.cxx.
References eStyle, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), GetColorStops(), GradientStyleToString(), nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.
|
static |
Definition at line 822 of file bgradient.cxx.
References aMap.
|
inline |
Definition at line 335 of file bgradient.hxx.
Referenced by getAsGradient2().
css::awt::Gradient2 basegfx::BGradient::getAsGradient2 | ( | ) | const |
Tooling method to fill awt::Gradient2 from data contained in the given basegfx::BGradient.
Definition at line 972 of file bgradient.cxx.
References aColorStops, GetAngle(), basegfx::BColorStops::getAsColorStopSequence(), GetBorder(), GetEndIntens(), GetGradientStyle(), GetStartIntens(), GetSteps(), GetXOffset(), and GetYOffset().
|
inline |
Definition at line 336 of file bgradient.hxx.
References nBorder.
Referenced by getAsGradient2(), basegfx::utils::prepareColorStops(), tryToApplyBorder(), tryToConvertToAxial(), and tryToRecreateBorder().
|
inline |
Definition at line 334 of file bgradient.hxx.
Referenced by dumpAsJSON(), basegfx::utils::prepareColorStops(), tryToConvertToAxial(), and tryToRecreateBorder().
|
inline |
Definition at line 340 of file bgradient.hxx.
Referenced by getAsGradient2(), basegfx::utils::prepareColorStops(), and tryToApplyStartEndIntensity().
|
inline |
Definition at line 333 of file bgradient.hxx.
Referenced by getAsGradient2(), tryToApplyAxial(), tryToApplyBorder(), tryToConvertToAxial(), and tryToRecreateBorder().
|
inline |
Definition at line 339 of file bgradient.hxx.
Referenced by getAsGradient2(), basegfx::utils::prepareColorStops(), and tryToApplyStartEndIntensity().
|
inline |
Definition at line 341 of file bgradient.hxx.
Referenced by getAsGradient2(), and tryToApplySteps().
|
inline |
Definition at line 337 of file bgradient.hxx.
Referenced by getAsGradient2().
|
inline |
Definition at line 338 of file bgradient.hxx.
Referenced by getAsGradient2().
|
staticprivate |
bool basegfx::BGradient::operator== | ( | const BGradient & | rGradient | ) | const |
Definition at line 925 of file bgradient.cxx.
References aColorStops, eStyle, nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.
|
inline |
Definition at line 325 of file bgradient.hxx.
Referenced by BGradient(), and setGradient2().
|
inline |
Definition at line 326 of file bgradient.hxx.
References nBorder.
Referenced by BGradient(), setGradient2(), tryToApplyBorder(), and tryToRecreateBorder().
void basegfx::BGradient::SetColorStops | ( | const basegfx::BColorStops & | rSteps | ) |
Definition at line 934 of file bgradient.cxx.
References aColorStops, and basegfx::BColorStops::sortAndCorrect().
Referenced by BGradient(), and tryToConvertToAxial().
|
inline |
Definition at line 330 of file bgradient.hxx.
Referenced by BGradient(), setGradient2(), and tryToApplyStartEndIntensity().
|
private |
Definition at line 859 of file bgradient.cxx.
References aColorStops, SetAngle(), SetBorder(), SetEndIntens(), SetGradientStyle(), SetStartIntens(), SetSteps(), SetXOffset(), SetYOffset(), and basegfx::BColorStops::sortAndCorrect().
Referenced by BGradient().
|
inline |
Definition at line 323 of file bgradient.hxx.
Referenced by BGradient(), setGradient2(), tryToApplyAxial(), and tryToConvertToAxial().
|
inline |
Definition at line 329 of file bgradient.hxx.
Referenced by BGradient(), setGradient2(), and tryToApplyStartEndIntensity().
|
inline |
Definition at line 331 of file bgradient.hxx.
Referenced by BGradient(), setGradient2(), and tryToApplySteps().
|
inline |
Definition at line 327 of file bgradient.hxx.
Referenced by BGradient(), and setGradient2().
|
inline |
Definition at line 328 of file bgradient.hxx.
Referenced by BGradient(), and setGradient2().
void basegfx::BGradient::tryToApplyAxial | ( | ) |
Definition at line 1137 of file bgradient.cxx.
References aColorStops, basegfx::BColorStops::doApplyAxial(), GetGradientStyle(), and SetGradientStyle().
void basegfx::BGradient::tryToApplyBorder | ( | ) |
Definition at line 1065 of file bgradient.cxx.
References aColorStops, basegfx::BColorStops::createSpaceAtStart(), GetBorder(), GetGradientStyle(), basegfx::BColorStops::reverseColorStops(), and SetBorder().
Referenced by basegfx::utils::prepareColorStops().
void basegfx::BGradient::tryToApplyStartEndIntensity | ( | ) |
Definition at line 1093 of file bgradient.cxx.
References aColorStops, basegfx::BColorStops::blendToIntensity(), GetEndIntens(), GetStartIntens(), SetEndIntens(), and SetStartIntens().
Referenced by basegfx::utils::prepareColorStops().
void basegfx::BGradient::tryToApplySteps | ( | ) |
Definition at line 1150 of file bgradient.cxx.
References aColorStops, basegfx::BColorStops::doApplySteps(), GetSteps(), and SetSteps().
void basegfx::BGradient::tryToConvertToAxial | ( | ) |
Definition at line 1108 of file bgradient.cxx.
References begin, GetBorder(), GetColorStops(), GetGradientStyle(), basegfx::fTools::lessOrEqual(), basegfx::BColorStops::reverseColorStops(), SetColorStops(), SetGradientStyle(), and size.
void basegfx::BGradient::tryToRecreateBorder | ( | basegfx::BColorStops * | pAssociatedTransparencyStops = nullptr | ) |
Definition at line 1016 of file bgradient.cxx.
References aColorStops, basegfx::BColorStops::detectPossibleOffsetAtStart(), basegfx::fTools::equalZero(), GetBorder(), GetColorStops(), GetGradientStyle(), basegfx::BColorStops::removeSpaceAtStart(), basegfx::BColorStops::reverseColorStops(), and SetBorder().
|
private |
Definition at line 296 of file bgradient.hxx.
Referenced by BGradient(), getAsGradient2(), operator==(), SetColorStops(), setGradient2(), tryToApplyAxial(), tryToApplyBorder(), tryToApplyStartEndIntensity(), tryToApplySteps(), and tryToRecreateBorder().
|
private |
Definition at line 293 of file bgradient.hxx.
Referenced by dumpAsJSON(), GradientStyleToString(), and operator==().
|
private |
Definition at line 298 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 299 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 303 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 302 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 300 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 301 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 304 of file bgradient.hxx.
Referenced by dumpAsJSON(), and operator==().