1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Rename epi::App::ui to epi::App::update

This commit is contained in:
Emil Ernerfeldt
2021-01-01 20:22:18 +01:00
parent defad4ed51
commit b1022d01c1
6 changed files with 8 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ pub use egui; // Re-export for user convenience
pub trait App {
/// Called each time the UI needs repainting, which may be many times per second.
/// Put your widgets into a [`egui::SidePanel`], [`egui::TopPanel`], [`egui::CentralPanel`], [`egui::Window`] or [`egui::Area`].
fn ui(&mut self, ctx: &egui::CtxRef, frame: &mut Frame<'_>);
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut Frame<'_>);
/// Called once before the first frame.
/// Allows you to do setup code and to call `ctx.set_fonts()`.