pub struct MapState {
pub pan_x: i32,
pub pan_y: i32,
pub zoom_level: Option<u32>,
}Expand description
インタラクティブ操作(パン・ズーム)の状態。
Fields§
§pan_x: i32パンオフセット X (px)。右ドラッグで正(地図が右へ動く=中心が西へ移動)。
pan_y: i32パンオフセット Y (px)。下ドラッグで正(地図が下へ動く=中心が北へ移動)。
zoom_level: Option<u32>明示的なズームレベル(None の場合は fit_zoom(e, w, h) を既定値として使用)。
Implementations§
Trait Implementations§
impl Copy for MapState
impl Eq for MapState
impl StructuralPartialEq for MapState
Auto Trait Implementations§
impl Freeze for MapState
impl RefUnwindSafe for MapState
impl Send for MapState
impl Sync for MapState
impl Unpin for MapState
impl UnsafeUnpin for MapState
impl UnwindSafe for MapState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.