SVG for C++
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
SVG::LinearGradient Class Reference

#include <svg.hpp>

Inherits detail::GradientElement.

Public Member Functions

ElementKind kind () const override
 
 LinearGradient (std::string id)
 
LinearGradienthorizontal ()
 
LinearGradientvertical ()
 
LinearGradientendpoints (std::string x1, std::string y1, std::string x2, std::string y2)
 
LinearGradientstop (std::string offset, std::string color)
 
LinearGradientstop (std::string offset, const Color &color)
 
LinearGradientstop (std::string offset, std::string color, double opacity)
 
LinearGradientstop (std::string offset, const Color &color, double opacity)
 
LinearGradientsolid_segments (std::initializer_list< std::string > colors)
 

Static Public Attributes

static constexpr ElementKind static_kind = ElementKind::LinearGradient
 

Protected Member Functions

std::unique_ptr< Elementclone_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: