Struct epi::Frame [−][src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,