Change the app by a better name
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use eframe::egui;
|
||||
pub struct MyApp {
|
||||
pub struct Omelt {
|
||||
name: String,
|
||||
age: u32,
|
||||
}
|
||||
|
||||
impl Default for MyApp {
|
||||
impl Default for Omelt {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
name: "Arthur".to_owned(),
|
||||
@@ -13,7 +13,7 @@ impl Default for MyApp {
|
||||
}
|
||||
}
|
||||
|
||||
impl eframe::App for MyApp {
|
||||
impl eframe::App for Omelt {
|
||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.heading("My egui Application");
|
||||
|
||||
@@ -12,7 +12,7 @@ mod node;
|
||||
mod read_and_write;
|
||||
|
||||
use byte_writer::{binary_to_string, string_to_binary};
|
||||
use gui::MyApp;
|
||||
use gui::Omelt;
|
||||
use node::{Node, create_tree, nodes_at_vec, read_tree, tree_to_map, tree_to_string};
|
||||
use read_and_write::{body_to_bin, get_map_file, is_valid_file, read_n_bytes};
|
||||
|
||||
@@ -120,7 +120,7 @@ fn main() -> std::io::Result<()> {
|
||||
// This gives us image support:
|
||||
egui_extras::install_image_loaders(&cc.egui_ctx);
|
||||
|
||||
Ok(Box::<MyApp>::default())
|
||||
Ok(Box::<Omelt>::default())
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user