Skip to main content

MapPageDemo

Struct MapPageDemo 

Source
pub struct MapPageDemo(/* private fields */);

Implementations§

Source§

impl MapPageDemo

Source

pub fn new() -> Result<Self, PlatformError>

Source

pub fn get_latitude(&self) -> f32

Source

pub fn set_latitude(&self, value: f32)

Source

pub fn get_layers(&self) -> ModelRc<Layer>

Source

pub fn set_layers(&self, value: ModelRc<Layer>)

Source

pub fn get_longitude(&self) -> f32

Source

pub fn set_longitude(&self, value: f32)

Source

pub fn invoke_pan(&self, arg_0: Coord, arg_1: Coord)

Source

pub fn on_pan(&self, f: impl FnMut(Coord, Coord) + 'static)

Source

pub fn get_query(&self) -> SharedString

Source

pub fn set_query(&self, value: SharedString)

Source

pub fn get_tiles(&self) -> ModelRc<Tile>

Source

pub fn set_tiles(&self, value: ModelRc<Tile>)

Source

pub fn get_zoom(&self) -> f32

Source

pub fn set_zoom(&self, value: f32)

Source

pub fn invoke_zoom_by(&self, arg_0: f32, arg_1: Coord, arg_2: Coord)

Source

pub fn on_zoom_by(&self, f: impl FnMut(f32, Coord, Coord) + 'static)

Trait Implementations§

Source§

impl ComponentHandle for MapPageDemo

Source§

fn as_weak(&self) -> Weak<Self>

Returns a new weak pointer.
Source§

fn clone_strong(&self) -> Self

Returns a clone of this handle that’s a strong reference.
Source§

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>

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>

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§

fn window(&self) -> &Window

Returns the Window associated with this component. The window API can be used to control different aspects of the integration into the windowing system, such as the position on the screen.
Source§

fn global<'a, T: Global<'a, Self>>(&'a self) -> T

This function provides access to instances of global singletons exported in .slint. See Global for an example how to export and access globals from .slint markup.
Source§

impl From<MapPageDemo> for VRc<ItemTreeVTable, InnerMapPageDemo>

Source§

fn from(value: MapPageDemo) -> Self

Converts to this type from the input type.
Source§

impl StrongHandle for MapPageDemo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.