pub struct MechApp { /* private fields */ }Implementations§
source§impl MechApp
impl MechApp
pub fn new(cc: &CreationContext<'_>, core: Core) -> Self
pub fn render_app(&mut self, ui: &mut Ui) -> Result<(), MechError>
pub fn render_code(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_panel_bottom(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_panel_top(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_panel_left(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_panel_right(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_panel_center(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_link(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_label(
&mut self,
table: &Table,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_table__window(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_slider(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_debug(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_canvas(
&mut self,
table: &Table,
row: usize,
container: &mut Ui
) -> Result<(), MechError>
pub fn render_circle(
&mut self,
table: &Table,
container: &mut Ui
) -> Result<Vec<Shape>, MechError>
Trait Implementations§
source§impl App for MechApp
impl App for MechApp
source§fn 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. Read more
source§fn 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 moresource§fn save(&mut self, _storage: &mut dyn Storage)
fn save(&mut self, _storage: &mut dyn Storage)
Called on shutdown, and perhaps at regular intervals. Allows you to save state. Read more
source§fn on_exit_event(&mut self) -> bool
fn on_exit_event(&mut self) -> bool
Called before an exit that can be aborted.
By returning
false the exit will be aborted. To continue the exit return true. Read moresource§fn on_exit(&mut self, _gl: &Context)
fn on_exit(&mut self, _gl: &Context)
Called once on shutdown, after
Self::save. Read moresource§fn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Time between automatic calls to
Self::savesource§fn max_size_points(&self) -> Vec2
fn max_size_points(&self) -> Vec2
The size limit of the web app canvas. Read more
source§fn 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.source§fn 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).
source§fn 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).