pub struct GuiLocation {
pub x: i32,
pub y: i32,
}Expand description
Screen coordinates of a GUI element in a LuaGui. This uses the same format as TilePosition, meaning it can be specified either with or without explicit keys.
Fields§
§x: i32§y: i32Trait Implementations§
Source§impl Clone for GuiLocation
impl Clone for GuiLocation
Source§fn clone(&self) -> GuiLocation
fn clone(&self) -> GuiLocation
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 GuiLocation
Source§impl Debug for GuiLocation
impl Debug for GuiLocation
Source§impl Default for GuiLocation
impl Default for GuiLocation
Source§fn default() -> GuiLocation
fn default() -> GuiLocation
Returns the “default value” for a type. Read more
Source§impl PartialEq for GuiLocation
impl PartialEq for GuiLocation
impl StructuralPartialEq for GuiLocation
Auto Trait Implementations§
impl Freeze for GuiLocation
impl RefUnwindSafe for GuiLocation
impl Send for GuiLocation
impl Sync for GuiLocation
impl Unpin for GuiLocation
impl UnsafeUnpin for GuiLocation
impl UnwindSafe for GuiLocation
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