pub struct PlacedTile {
pub key: TileKey,
pub x: f32,
pub y: f32,
pub size: f32,
}Expand description
One tile selected for display, with its pixel offset inside the
viewport. Mirrors the Tile slint struct exposed by MapView.
Fields§
§key: TileKey§x: f32Pixel offset of the tile’s top-left corner from the viewport top-left. May be negative when the tile extends off-screen left or above the viewport.
y: f32§size: f32Trait Implementations§
Source§impl Clone for PlacedTile
impl Clone for PlacedTile
Source§fn clone(&self) -> PlacedTile
fn clone(&self) -> PlacedTile
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 PlacedTile
Auto Trait Implementations§
impl Freeze for PlacedTile
impl RefUnwindSafe for PlacedTile
impl Send for PlacedTile
impl Sync for PlacedTile
impl Unpin for PlacedTile
impl UnsafeUnpin for PlacedTile
impl UnwindSafe for PlacedTile
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