Struct epi::Frame[][src]

pub struct Frame<'a>(_);

Represents the surroundings of your app.

It provides methods to inspect the surroundings (are we on the web?), allocate textures, do http requests, and change settings (e.g. window size).

Implementations

impl<'a> Frame<'a>[src]

pub fn is_web(&self) -> bool[src]

True if you are in a web environment.

pub fn info(&self) -> &IntegrationInfo[src]

Information about the integration.

pub fn tex_allocator(&mut self) -> &mut dyn TextureAllocator[src]

A way to allocate textures.

pub fn quit(&mut self)[src]

Signal the app to stop/exit/quit the app (only works for native apps, not web apps). The framework will NOT quick immediately, but at the end of the this frame.

pub fn set_window_size(&mut self, size: Vec2)[src]

Set the desired inner size of the window (in egui points).

pub fn repaint_signal(&self) -> Arc<dyn RepaintSignal>[src]

If you need to request a repaint from another thread, clone this and send it to that other thread.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Frame<'a>

impl<'a> !Send for Frame<'a>

impl<'a> !Sync for Frame<'a>

impl<'a> Unpin for Frame<'a>

impl<'a> !UnwindSafe for Frame<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.