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

Box the app creator (#1373)

This commit is contained in:
Emil Ernerfeldt
2022-03-18 14:23:07 +01:00
committed by GitHub
parent c8f6cae362
commit c69f39e869
12 changed files with 46 additions and 23 deletions

View File

@@ -4,9 +4,11 @@ use eframe::egui;
fn main() {
let options = eframe::NativeOptions::default();
eframe::run_native("egui example: custom font", options, |cc| {
Box::new(MyApp::new(cc))
});
eframe::run_native(
"egui example: custom font",
options,
Box::new(|cc| Box::new(MyApp::new(cc))),
);
}
fn setup_custom_fonts(ctx: &egui::Context) {