pub struct GlifImage {
pub filename: PathBuf,
pub xScale: IntegerOrFloat,
pub xyScale: IntegerOrFloat,
pub yxScale: IntegerOrFloat,
pub yScale: IntegerOrFloat,
pub xOffset: IntegerOrFloat,
pub yOffset: IntegerOrFloat,
pub identifier: Option<String>,
pub color: Option<Color>,
}Fields§
§filename: PathBuf§xScale: IntegerOrFloat§xyScale: IntegerOrFloat§yxScale: IntegerOrFloat§yScale: IntegerOrFloat§xOffset: IntegerOrFloat§yOffset: IntegerOrFloat§identifier: Option<String>§color: Option<Color>Implementations§
Source§impl GlifImage
impl GlifImage
pub fn from_filename<P: Into<PathBuf>>(p: P) -> Result<Self, GlifParserError>
Source§impl GlifImage
impl GlifImage
pub fn matrix(&self) -> GlifMatrix
pub fn set_matrix(&mut self, matrix: impl Into<Affine>)
Source§impl GlifImage
impl GlifImage
pub fn to_image_of(&self, glif: &dyn GlifLike) -> Result<Image, GlifParserError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlifImage
impl<'de> Deserialize<'de> for GlifImage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryIntoXML for GlifImage
impl TryIntoXML for GlifImage
fn try_xml(&self) -> GlifParserResult<Element>
impl StructuralPartialEq for GlifImage
Auto Trait Implementations§
impl Freeze for GlifImage
impl RefUnwindSafe for GlifImage
impl Send for GlifImage
impl Sync for GlifImage
impl Unpin for GlifImage
impl UnwindSafe for GlifImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more