[][src]Struct yy_typings::sprite::Image

pub struct Image {
    pub frame_id: FilesystemPath,
    pub layer_id: Option<FilesystemPath>,
    pub resource_version: String,
    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: String

The version of the resource.

name: Option<String>

This appears to only ever be two values:

  • None for normal images
  • Some("composite") for the composite image.

It may have other purposes.

tags: Tags

The tags assigned to each image. You can apparently tag an image.

resource_type: ConstGmImage

The resource name of the GM Image.

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl Default for Image[src]

fn default() -> Self[src]

Return Image { frame_id: Default::default(), layer_id: Default::default(), resource_version: "1.0" . to_string(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

impl<'de> Deserialize<'de> for Image[src]

impl Eq for Image[src]

impl PartialEq<Image> for Image[src]

impl Serialize for Image[src]

impl StructuralEq for Image[src]

impl StructuralPartialEq for Image[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,