pub struct SlotLayout {
pub x: f32,
pub y: f32,
}Expand description
Pixel position of a single slot in vanilla GUI coordinate space (the same space vanilla screens use: origin at the panel’s top-left corner, one vanilla slot = 18×18px).
Fields§
§x: f32§y: f32Trait Implementations§
Source§impl Clone for SlotLayout
impl Clone for SlotLayout
Source§fn clone(&self) -> SlotLayout
fn clone(&self) -> SlotLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlotLayout
Source§impl Debug for SlotLayout
impl Debug for SlotLayout
Source§impl<'de> Deserialize<'de> for SlotLayout
impl<'de> Deserialize<'de> for SlotLayout
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlotLayout, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlotLayout, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SlotLayout
impl PartialEq for SlotLayout
Source§fn eq(&self, other: &SlotLayout) -> bool
fn eq(&self, other: &SlotLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlotLayout
Auto Trait Implementations§
impl Freeze for SlotLayout
impl RefUnwindSafe for SlotLayout
impl Send for SlotLayout
impl Sync for SlotLayout
impl Unpin for SlotLayout
impl UnsafeUnpin for SlotLayout
impl UnwindSafe for SlotLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more