[][src]Trait svgdom::AttributeType

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

fn is_presentation(&self) -> bool

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

fn is_inheritable(&self) -> bool

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

fn is_animation_event(&self) -> bool

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

fn is_graphical_event(&self) -> bool

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

fn is_document_event(&self) -> bool

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

fn is_conditional_processing(&self) -> bool

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

fn is_core(&self) -> bool

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.

fn is_fill(&self) -> bool

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.

fn is_stroke(&self) -> bool

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.

Loading content...

Implementors

Loading content...