SVG for C++
Loading...
Searching...
No Matches
SVG::LinearGradient Class Reference

#include <svg.hpp>

Inherits detail::GradientElement.

Public Member Functions

ElementKind kind () const override
 LinearGradient (std::string id)
LinearGradient & horizontal ()
LinearGradient & vertical ()
LinearGradient & endpoints (std::string x1, std::string y1, std::string x2, std::string y2)
LinearGradient & stop (std::string offset, std::string color)
LinearGradient & stop (std::string offset, const Color &color)
LinearGradient & stop (std::string offset, std::string color, double opacity)
LinearGradient & stop (std::string offset, const Color &color, double opacity)
LinearGradient & solid_segments (std::initializer_list< std::string > colors)

Static Public Attributes

static constexpr ElementKind static_kind = ElementKind::LinearGradient

Protected Member Functions

std::unique_ptr< Element > clone_element_impl () const override

Detailed Description

Linear gradient definition created through Defs::linear_gradient().


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