App

Struct App 

Source
pub struct App {
    pub runtime_options: RuntimeOptions,
    /* private fields */
}

Fields§

§runtime_options: RuntimeOptions

Implementations§

Source§

impl App

Source

pub fn new() -> Result<Self>

Source

pub fn screen_size(&self) -> Size

Source

pub fn set_screen_size(&mut self, size: Size)

Source

pub fn assets(&self) -> &Assets

Source

pub fn models(&self) -> &Models

Source

pub fn models_mut(&mut self) -> &mut Models

Source

pub fn request_redraw(&mut self, region: Region)

Source

pub fn take_redraw_requests(&mut self) -> Option<Region>

Source

pub fn is_redraw_needed(&self) -> bool

Source

pub fn enqueue_input_number_request(&mut self) -> InputId

Source

pub fn enqueue_input_size_request(&mut self) -> InputId

Source

pub fn enqueue_io_request(&mut self, request: IoRequest)

Source

pub fn dequeue_io_request(&mut self) -> Option<IoRequest>

Source

pub fn spawn_window(&mut self, window: impl Window) -> Result<()>

Source

pub fn take_spawned_windows(&mut self) -> Vec<Box<dyn Window>>

Source

pub fn set_timeout(&mut self, tag: TimeoutTag, duration: Duration)

Source

pub fn set_pending_timeouts<S: System>(&mut self, system: &mut S)

Source

pub fn zoom(&mut self, zoom_in: bool)

Trait Implementations§

Source§

impl Debug for App

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for App

§

impl !RefUnwindSafe for App

§

impl !Send for App

§

impl !Sync for App

§

impl Unpin for App

§

impl !UnwindSafe for App

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V