Skip to main content

ShapeProperties

Trait ShapeProperties 

Source
pub trait ShapeProperties {
    // Required methods
    fn shape_id(&self) -> ShapeId;
    fn name(&self) -> &str;
    fn left(&self) -> Emu;
    fn top(&self) -> Emu;
    fn width(&self) -> Emu;
    fn height(&self) -> Emu;
    fn rotation(&self) -> f64;
}
Expand description

Common geometric and identity properties shared by all shape types.

Required Methods§

Source

fn shape_id(&self) -> ShapeId

Returns the unique shape identifier.

Source

fn name(&self) -> &str

Returns the shape name.

Source

fn left(&self) -> Emu

Returns the left position in EMU (English Metric Units).

Source

fn top(&self) -> Emu

Returns the top position in EMU (English Metric Units).

Source

fn width(&self) -> Emu

Returns the width in EMU (English Metric Units).

Source

fn height(&self) -> Emu

Returns the height in EMU (English Metric Units).

Source

fn rotation(&self) -> f64

Returns the rotation angle in degrees.

Implementors§