pub struct MapPageDemo(/* private fields */);Implementations§
Source§impl MapPageDemo
impl MapPageDemo
pub fn new() -> Result<Self, PlatformError>
pub fn get_latitude(&self) -> f32
pub fn set_latitude(&self, value: f32)
pub fn get_layers(&self) -> ModelRc<Layer>
pub fn set_layers(&self, value: ModelRc<Layer>)
pub fn get_longitude(&self) -> f32
pub fn set_longitude(&self, value: f32)
pub fn invoke_pan(&self, arg_0: Coord, arg_1: Coord)
pub fn on_pan(&self, f: impl FnMut(Coord, Coord) + 'static)
pub fn get_query(&self) -> SharedString
pub fn set_query(&self, value: SharedString)
pub fn get_tiles(&self) -> ModelRc<Tile>
pub fn set_tiles(&self, value: ModelRc<Tile>)
pub fn get_zoom(&self) -> f32
pub fn set_zoom(&self, value: f32)
pub fn invoke_zoom_by(&self, arg_0: f32, arg_1: Coord, arg_2: Coord)
pub fn on_zoom_by(&self, f: impl FnMut(f32, Coord, Coord) + 'static)
Trait Implementations§
Source§impl ComponentHandle for MapPageDemo
impl ComponentHandle for MapPageDemo
Source§fn clone_strong(&self) -> Self
fn clone_strong(&self) -> Self
Returns a clone of this handle that’s a strong reference.
Source§fn run(&self) -> Result<(), PlatformError>
fn run(&self) -> Result<(), PlatformError>
This is a convenience function that first calls
Self::show, followed by crate::run_event_loop()
and Self::hide.Source§fn show(&self) -> Result<(), PlatformError>
fn show(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::show().
This shows the window on the screen and maintains an extra strong reference while
the window is visible. To react to events from the windowing system, such as draw
requests or mouse/touch input, it is still necessary to spin the event loop,
using crate::run_event_loop.Source§fn hide(&self) -> Result<(), PlatformError>
fn hide(&self) -> Result<(), PlatformError>
Convenience function for
crate::Window::hide().
Hides the window, so that it is not visible anymore. The additional strong reference
on the associated component, that was created when show() was called, is dropped.Source§impl From<MapPageDemo> for VRc<ItemTreeVTable, InnerMapPageDemo>
impl From<MapPageDemo> for VRc<ItemTreeVTable, InnerMapPageDemo>
Source§fn from(value: MapPageDemo) -> Self
fn from(value: MapPageDemo) -> Self
Converts to this type from the input type.
impl StrongHandle for MapPageDemo
Auto Trait Implementations§
impl Freeze for MapPageDemo
impl !RefUnwindSafe for MapPageDemo
impl !Send for MapPageDemo
impl !Sync for MapPageDemo
impl Unpin for MapPageDemo
impl UnsafeUnpin for MapPageDemo
impl !UnwindSafe for MapPageDemo
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