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]
impl<'a> Frame<'a>
[src]pub fn info(&self) -> &IntegrationInfo
[src]
pub fn info(&self) -> &IntegrationInfo
[src]Information about the integration.
pub fn tex_allocator(&mut self) -> &mut dyn TextureAllocator
[src]
pub fn tex_allocator(&mut self) -> &mut dyn TextureAllocator
[src]A way to allocate textures.
pub fn quit(&mut self)
[src]
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]
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]
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.