AttributesAccess

Trait AttributesAccess 

Source
pub trait AttributesAccess {
    // Required method
    fn get_attributes_by_id(&self, id: &Identifier) -> Vec<Attribute>;

    // Provided methods
    fn get_single_attribute(&self, id: &Identifier) -> Option<Attribute> { ... }
    fn get_attribute_value(&self, id: &Identifier) -> Value { ... }
    fn get_resolution(&self) -> Option<ResolutionAttribute> { ... }
    fn get_color(&self) -> Option<Color> { ... }
    fn get_theme(&self) -> Option<Rc<Theme>> { ... }
    fn get_size(&self) -> Option<Size2> { ... }
    fn get_exports(&self) -> Vec<ExportCommand> { ... }
    fn get_measures(&self) -> Vec<MeasureCommand> { ... }
    fn get_custom_attributes(&self, id: &Identifier) -> Vec<Tuple> { ... }
}
Expand description

Access an attributes value by id.

Required Methods§

Source

fn get_attributes_by_id(&self, id: &Identifier) -> Vec<Attribute>

Get a value attribute by id.

Provided Methods§

Source

fn get_single_attribute(&self, id: &Identifier) -> Option<Attribute>

Get a single attributes.

Source

fn get_attribute_value(&self, id: &Identifier) -> Value

Get single attribute as value.

Source

fn get_resolution(&self) -> Option<ResolutionAttribute>

Get resolution attribute.

Source

fn get_color(&self) -> Option<Color>

Color (builtin attribute).

Source

fn get_theme(&self) -> Option<Rc<Theme>>

Color theme (builtin attribute).

Source

fn get_size(&self) -> Option<Size2>

Get size.

Source

fn get_exports(&self) -> Vec<ExportCommand>

Get all export commands.

Source

fn get_measures(&self) -> Vec<MeasureCommand>

Get all measure commands.

Source

fn get_custom_attributes(&self, id: &Identifier) -> Vec<Tuple>

Get custom attributes.

Implementors§