Enum swash::Style [−][src]
pub enum Style { Normal, Italic, Oblique(ObliqueAngle), }
Visual style or ‘slope’ of a font.
Variants
Oblique(ObliqueAngle)
Implementations
impl Style
[src]
impl Style
[src]pub fn parse(s: &str) -> Option<Self>
[src]
Parses a style from a CSS style value.
pub fn from_degrees(degrees: f32) -> Self
[src]
Creates a new oblique style with the specified angle in degrees.
pub fn to_degrees(&self) -> f32
[src]
Returns the angle of the style in degrees.
Trait Implementations
impl StructuralEq for Style
[src]
impl StructuralEq for Style
[src]impl StructuralPartialEq for Style
[src]
impl StructuralPartialEq for Style
[src]Auto Trait Implementations
impl RefUnwindSafe for Style
impl RefUnwindSafe for Style
impl UnwindSafe for Style
impl UnwindSafe for Style