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 Option<&'a mut dyn TextureAllocator>[src]

A way to allocate textures (on integrations that support it).

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 set_pixels_per_point(&mut self, pixels_per_point: f32)[src]

Change the pixels_per_point of egui to this next frame.

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>[src]

impl<'a> !Send for Frame<'a>[src]

impl<'a> !Sync for Frame<'a>[src]

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

impl<'a> !UnwindSafe for Frame<'a>[src]

Blanket Implementations

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

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

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

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

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

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.

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.