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
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Axis
impl UnwindSafe for Axis