Struct designspace::Axis[][src]

pub struct Axis {
    pub name: String,
    pub tag: String,
    pub minimum: i32,
    pub maximum: i32,
    pub default: i32,
    pub hidden: Option<bool>,
    pub labelname: Option<Vec<LabelName>>,
    pub map: Option<Vec<Mapping>>,
}
Expand description

A single axis

Fields

name: String

Axis name (user-facing)

tag: String

Axis tag (internal; four bytes)

minimum: i32

Axis minimum value

maximum: i32

Axis maximum value

default: i32

Axis default value

hidden: Option<bool>

Whether the axis should be exposed to the user

labelname: Option<Vec<LabelName>>

Internationalized name

map: Option<Vec<Mapping>>

Mapping between userspace and designspace values

Implementations

Converts a position on this axis in userspace coordinates to designspace coordinates

Converts a position on this axis from designspace coordinates to userspace coordinates

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.