Trait svgdom::AttributeType [] [src]

pub trait AttributeType {
    fn is_presentation(&self) -> bool;
fn is_inheritable(&self) -> bool;
fn is_animation_event(&self) -> bool;
fn is_graphical_event(&self) -> bool;
fn is_document_event(&self) -> bool;
fn is_conditional_processing(&self) -> bool;
fn is_core(&self) -> bool;
fn is_fill(&self) -> bool;
fn is_stroke(&self) -> bool; }

This trait contains methods that check attribute's type according to the SVG spec.

Required Methods

Returns true if the current attribute is part of presentation attributes.

Returns true if the current attribute is part of inheritable presentation attributes.

Returns true if the current attribute is part of animation event attributes.

Returns true if the current attribute is part of graphical event attributes.

Returns true if the current attribute is part of document event attributes.

Returns true if the current attribute is part of conditional processing attributes.

Returns true if the current attribute is part of core attributes.

NOTE: the id attribute is part of core attributes, but we don't store it in Attributes since it's part of the Node struct.

Returns true if the current attribute is part of fill attributes.

List of fill attributes: fill, fill-opacity, fill-rule.

This check is not defined by the SVG spec.

Returns true if the current attribute is part of stroke attributes.

List of stroke attributes: stroke, stroke-dasharray, stroke-dashoffset, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width.

This check is not defined by the SVG spec.

Implementors