Struct glifparser::image::GlifImage
source · 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