Struct yy_typings::sprite_yy::NineSlice[][src]

pub struct NineSlice {
    pub left: u64,
    pub top: u64,
    pub right: u64,
    pub bottom: u64,
    pub guide_colour: [GmEncodedColor; 4],
    pub highlight_colour: GmEncodedColor,
    pub highlight_style: HighlightStyle,
    pub enabled: bool,
    pub tile_mode: [TileMode; 5],
    pub resource_version: ResourceVersion,
    pub loaded_version: Value,
    pub resource_type: ConstGmNineSliceData,
}

Fields

left: u64

The left bound.

top: u64

The top bound.

right: u64

The right bound.

bottom: u64

The bottom bound.

guide_colour: [GmEncodedColor; 4]

The guide color for each bound, listed in this order: 0: Left 1: Top 2: Right 3: Bottom

highlight_colour: GmEncodedColor

The highlight color to use for the highlighted segment. Why in the world is this user configurable? But it is!

highlight_style: HighlightStyle

The style of the highlight.

enabled: bool

Whether nine-slicing is enabled. This data structure as a whole may be set to null, or be defined but disabled. This allows the user to toggle nine-slicing on and off.

tile_mode: [TileMode; 5]

This is an array of 5 tile mode sprites. I am leaving this typed as a raw array right now, rather than writing a custom serde impl, due to time constraints. In the future, I will make this into a nice struct. The following are each index: 0: Left 1: Top, 2: Right 3: Bottom 4: Center

resource_version: ResourceVersion

Version string. Right now, this is loosely typed and ignored, but will be used in the future to aid in parsing.

loaded_version: Value

This appears to always be null? Unknown what it refers to.

resource_type: ConstGmNineSliceData

A constant, always “GMNineSliceData”

Trait Implementations

impl Clone for NineSlice[src]

impl Debug for NineSlice[src]

impl Default for NineSlice[src]

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

impl PartialEq<NineSlice> for NineSlice[src]

impl Serialize for NineSlice[src]

impl StructuralPartialEq for NineSlice[src]

Auto Trait Implementations

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.