Struct yy_typings::sprite_yy::Image
source · [−]pub struct Image {
pub frame_id: FilesystemPath,
pub layer_id: Option<FilesystemPath>,
pub resource_version: ResourceVersion,
pub name: Option<String>,
pub tags: Tags,
pub resource_type: ConstGmImage,
}
Fields
frame_id: FilesystemPath
Although named FrameId, this is actually the path to the the parent
frame resource. The name
field will correspond to the Frame.name
field.
layer_id: Option<FilesystemPath>
This always corresponds to the LayerId which this SpriteImage
corresponds to. It will be None
in the case of the
composite_image
field – otherwise, it will contain a valid path
to the parent layer.
resource_version: ResourceVersion
The version of the resource.
name: Option<String>
This appears to only ever be two values:
None
for normal imagesSome("composite")
for the composite image.
It may have other purposes.
The tags assigned to each image. You can apparently tag an image.
resource_type: ConstGmImage
The resource name of the GM Image.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
sourcefn 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
sourceimpl PartialEq<Image> for Image
impl PartialEq<Image> for Image
impl Eq for Image
impl StructuralEq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more