#include "tvgFill.h"
Fill* RadialGradient::Impl::duplicate()
{ … }
Result RadialGradient::Impl::radial(float cx, float cy, float r, float fx, float fy, float fr)
{
if (r < 0 || fr < 0) return Result::InvalidArguments;
this->cx = cx;
this->cy = cy;
this->r = r;
this->fx = fx;
this->fy = fy;
this->fr = fr;
return Result::Success;
};
Fill* LinearGradient::Impl::duplicate()
{
auto ret = LinearGradient::gen();
if (!ret) return nullptr;
ret->pImpl->x1 = x1;
ret->pImpl->y1 = y1;
ret->pImpl->x2 = x2;
ret->pImpl->y2 = y2;
return ret.release();
};
Fill::Fill(): … { … }
Fill::~Fill()
{ … }
Result Fill::colorStops(const ColorStop* colorStops, uint32_t cnt) noexcept
{ … }
uint32_t Fill::colorStops(const ColorStop** colorStops) const noexcept
{ … }
Result Fill::spread(FillSpread s) noexcept
{ … }
FillSpread Fill::spread() const noexcept
{ … }
Result Fill::transform(const Matrix& m) noexcept
{ … }
Matrix Fill::transform() const noexcept
{ … }
Fill* Fill::duplicate() const noexcept
{ … }
uint32_t Fill::identifier() const noexcept
{ … }
RadialGradient::RadialGradient(): … { … }
RadialGradient::~RadialGradient()
{ … }
Result RadialGradient::radial(float cx, float cy, float r) noexcept
{ … }
Result RadialGradient::radial(float* cx, float* cy, float* r) const noexcept
{ … }
unique_ptr<RadialGradient> RadialGradient::gen() noexcept
{ … }
uint32_t RadialGradient::identifier() noexcept
{ … }
LinearGradient::LinearGradient(): … { … }
LinearGradient::~LinearGradient()
{ … }
Result LinearGradient::linear(float x1, float y1, float x2, float y2) noexcept
{ … }
Result LinearGradient::linear(float* x1, float* y1, float* x2, float* y2) const noexcept
{ … }
unique_ptr<LinearGradient> LinearGradient::gen() noexcept
{ … }
uint32_t LinearGradient::identifier() noexcept
{ … }