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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<NineSlice> for NineSlice
[src]
impl Serialize for NineSlice
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for NineSlice
[src]
Auto Trait Implementations
impl RefUnwindSafe for NineSlice
impl Send for NineSlice
impl Sync for NineSlice
impl Unpin for NineSlice
impl UnwindSafe for NineSlice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,