|
| ElementKind | kind () const override |
| |
|
| Rect (double x, double y, double width, double height) |
| |
| Element::BoundingBox | get_bbox () const override |
| |
| | operator Point () const |
| |
| virtual std::vector< Point > | points () const |
| |
|
virtual double | x () const |
| |
|
virtual double | y () const |
| |
| virtual double | width () const |
| |
| virtual double | height () const |
| |
|
| Element ()=default |
| |
| | Element (const Element &other) |
| |
|
| Element (Element &&other) noexcept |
| |
|
| Element (const char *id) |
| |
| | Element (const Element &other) |
| |
|
| Element (Element &&other) noexcept |
| |
|
Element & | operator= (const Element &)=delete |
| |
|
Element & | operator= (Element &&other) noexcept |
| |
|
| Element (const char *id) |
| |
|
| operator std::string () const |
| |
| std::unique_ptr< Element > | clone_element () const |
| |
| template<typename T , typename... Args> |
| T * | add_child (Args &&... args) |
| |
| template<typename T > |
| Element & | operator<< (T &&node) |
| |
| template<typename T > |
| std::vector< T * > | get_children () |
| |
| template<typename T > |
| std::vector< const T * > | get_children () const |
| |
| template<typename T > |
| std::vector< T * > | get_immediate_children () |
| |
| template<typename T > |
| std::vector< const T * > | get_immediate_children () const |
| |
| Element * | get_element_by_id (const std::string &id) |
| |
| const Element * | get_element_by_id (const std::string &id) const |
| |
| std::vector< Element * > | get_elements_by_class (const std::string &clsname) |
| |
| std::vector< const Element * > | get_elements_by_class (const std::string &clsname) const |
| |
|
const Element * | parent () const |
| |
|
Element & | id (const std::string &value) |
| |
|
std::string | id () const |
| |
|
void | autoscale (const Margins &margins=DEFAULT_MARGINS) |
| |
| void | autoscale (const double margin) |
| |
| void | autoscale (const AutoscaleOptions &options) |
| |
| void | responsive_autoscale (const Margins &margins=DEFAULT_MARGINS) |
| |
| void | responsive_autoscale (const double margin) |
| |
| void | responsive_autoscale (const AutoscaleOptions &options) |
| |
| Element & | layout_bbox (const BoundingBox &bbox) |
| |
| Element & | bbox_padding (const Margins &padding) |
| |
| Element & | bbox_padding (double padding) |
| |
| Element & | clear_layout_bbox () |
| |
| bool | has_layout_bbox () const |
| |
| BoundingBox | layout_bbox () const |
| |
| Element & | snap_to (const Element &target, RelativeAlignment relative, Point offset=Point(0, 0)) |
| |
| Element & | snap_to (const Element &target, Alignment alignment, Point offset=Point(0, 0)) |
| |
| Element & | align_to (const Element &target, Axis axis, Point offset=Point(0, 0)) |
| |
| Element & | align_to (const Element &target, Axis axis, Anchor anchor, Point offset=Point(0, 0)) |
| |
|
TransformList | transform_list () |
| |
|
TransformList | transform_list () const |
| |
|
TransformList | transform () |
| |
|
TransformList | transform () const |
| |
| ChildMap | get_children () |
| |
| ConstChildMap | get_children () const |
| |
| DepthFirstIterator | begin () |
| |
| ConstDepthFirstIterator | begin () const |
| |
|
DepthFirstIterator | end () |
| |
|
ConstDepthFirstIterator | end () const |
| |
| DepthFirstRange | depth_first () |
| |
| DepthFirstRange | depth_first (TraversalOptions options) |
| |
| ConstDepthFirstRange | depth_first () const |
| |
| ConstDepthFirstRange | depth_first (TraversalOptions options) const |
| |
| DepthFirstRange | descendants () |
| |
| DepthFirstRange | descendants (TraversalOptions options) |
| |
| ConstDepthFirstRange | descendants () const |
| |
| ConstDepthFirstRange | descendants (TraversalOptions options) const |
| |
| template<> |
| Element::ChildList | get_immediate_children () |
| |
| template<> |
| Element::ConstChildList | get_immediate_children () const |
| |
|
| AttributeMap ()=default |
| |
|
| AttributeMap (SVGAttrib _attr) |
| |
|
| AttributeMap (SVGAttrib _attr) |
| |
|
const SVGAttrib & | attrs () const |
| |
|
bool | has_attr (const std::string &key) const |
| |
|
std::string | get_attr (const std::string &key, const std::string &fallback="") const |
| |
| template<typename T > |
| std::enable_if< detail::is_numeric_attr_type< T >::value, T >::type | get_attr (const std::string &key, T fallback) const |
| |
|
template<typename T > |
| AttributeMap & | set_attr (const std::string key, T value) |
| |
| AttributeMap & | set_attr (const std::string key, const Color &value) |
| |
| AttributeMap & | set_attrs (std::initializer_list< std::pair< std::string, std::string > > values) |
| |
| AttributeMap & | set_attrs (const SVGAttrib &values) |
| |
|
AttrSetter | set_attr (const std::string key) |
| |
|
ClassList | class_list () |
| |
|
ClassList | class_list () const |
| |
|
TransformList | transform_list () |
| |
|
TransformList | transform_list () const |
| |
|
TransformList | transform () |
| |
|
TransformList | transform () const |
| |
| template<> |
| AttributeMap & | set_attr (const std::string key, const double value) |
| |
| template<> |
| AttributeMap & | set_attr (const std::string key, const char *value) |
| |
| template<> |
| AttributeMap & | set_attr (const std::string key, const std::string value) |
| |
|
|
using | ChildList = std::vector< Element * > |
| |
|
using | ConstChildList = std::vector< const Element * > |
| |
|
using | ChildMap = std::map< std::string, ChildList > |
| |
|
using | ConstChildMap = std::map< std::string, ConstChildList > |
| |
| using | ChildIterator = std::vector< std::unique_ptr< Element > >::iterator |
| |
|
static detail::AffineTransform | transform_for (const Element *element, const detail::AffineTransform &parent_transform) |
| |
|
std::vector< std::unique_ptr< Element > > | children |
| |