diff --git a/src/application.rs b/src/application.rs index ab886b39..728818f8 100644 --- a/src/application.rs +++ b/src/application.rs @@ -3,7 +3,7 @@ use crate::window_events; use crate::pipeline::Pipeline; use crate::texture::Texture; use crate::resource_cache::ResourceCache; -use crate::component_layout::ComponentLayout; +use crate::gui_layout::GuiLayout; use crate::gui_node::GuiNode; use winit::event::*; use winit::event_loop::*; @@ -75,7 +75,7 @@ impl Application { let gui_root_data = GuiNode::new(swap_chain_descriptor.width, swap_chain_descriptor.height, ColorPalette::get_color_srgb(ColorPalette::Accent)); let gui_root = rctree::Node::new(gui_root_data); - ComponentLayout::new(); + GuiLayout::new(); Self { surface, diff --git a/src/component_layout.rs b/src/gui_layout.rs similarity index 97% rename from src/component_layout.rs rename to src/gui_layout.rs index 5f37b85a..45c249f6 100644 --- a/src/component_layout.rs +++ b/src/gui_layout.rs @@ -2,12 +2,12 @@ use std::fs; use std::io; use crate::layout_parsed_node::*; -pub struct ComponentLayout { +pub struct GuiLayout { } -impl ComponentLayout { - pub fn new() -> ComponentLayout { +impl GuiLayout { + pub fn new() -> GuiLayout { let parsed_layout_tree = Self::parse_xml_file("gui/window/main.xml").unwrap(); Self::interpret_abstract_syntax_tree(parsed_layout_tree); Self {} diff --git a/src/main.rs b/src/main.rs index 92b33074..7ca97d08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ mod draw_command; mod gui_node; mod gui_attributes; mod window_events; -mod component_layout; +mod gui_layout; mod layout_parsed_node; use application::Application;