pub struct App { /* private fields */ }
Implementations
sourceimpl App
impl App
sourcepub fn new(_cc: &CreationContext<'_>) -> Self
pub fn new(_cc: &CreationContext<'_>) -> Self
Called once before the first frame.
Trait Implementations
sourceimpl App for App
impl App for App
sourcefn save(&mut self, storage: &mut dyn Storage)
fn save(&mut self, storage: &mut dyn Storage)
Called by the frame work to save state before shutdown.
sourcefn update(&mut self, ctx: &Context, frame: &mut Frame)
fn update(&mut self, ctx: &Context, frame: &mut Frame)
Called each time the UI needs repainting, which may be many times per second.
sourcefn on_close_event(&mut self) -> bool
fn on_close_event(&mut self) -> bool
Called when the user attempts to close the desktop window and/or quit the application. Read more
sourcefn on_exit(&mut self, _gl: Option<&Context>)
fn on_exit(&mut self, _gl: Option<&Context>)
Called once on shutdown, after
Self::save
. Read moresourcefn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Time between automatic calls to
Self::save
sourcefn max_size_points(&self) -> Vec2
fn max_size_points(&self) -> Vec2
The size limit of the web app canvas. Read more
sourcefn clear_color(&self, _visuals: &Visuals) -> Rgba
fn clear_color(&self, _visuals: &Visuals) -> Rgba
Background color for the app, e.g. what is sent to
gl.clearColor
.
This is the background of your windows if you don’t set a central panel. Read moresourcefn persist_native_window(&self) -> bool
fn persist_native_window(&self) -> bool
Controls whether or not the native window position and size will be
persisted (only if the “persistence” feature is enabled). Read more
sourcefn persist_egui_memory(&self) -> bool
fn persist_egui_memory(&self) -> bool
Controls whether or not the egui memory (window positions etc) will be
persisted (only if the “persistence” feature is enabled). Read more
sourcefn warm_up_enabled(&self) -> bool
fn warm_up_enabled(&self) -> bool
If
true
a warm-up call to Self::update
will be issued where
ctx.memory().everything_is_visible()
will be set to true
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.