Rename ComponentLayout to GuiLayout
This commit is contained in:
parent
870ce74743
commit
decff5681b
|
|
@ -3,7 +3,7 @@ use crate::window_events;
|
||||||
use crate::pipeline::Pipeline;
|
use crate::pipeline::Pipeline;
|
||||||
use crate::texture::Texture;
|
use crate::texture::Texture;
|
||||||
use crate::resource_cache::ResourceCache;
|
use crate::resource_cache::ResourceCache;
|
||||||
use crate::component_layout::ComponentLayout;
|
use crate::gui_layout::GuiLayout;
|
||||||
use crate::gui_node::GuiNode;
|
use crate::gui_node::GuiNode;
|
||||||
use winit::event::*;
|
use winit::event::*;
|
||||||
use winit::event_loop::*;
|
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_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);
|
let gui_root = rctree::Node::new(gui_root_data);
|
||||||
|
|
||||||
ComponentLayout::new();
|
GuiLayout::new();
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
surface,
|
surface,
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@ use std::fs;
|
||||||
use std::io;
|
use std::io;
|
||||||
use crate::layout_parsed_node::*;
|
use crate::layout_parsed_node::*;
|
||||||
|
|
||||||
pub struct ComponentLayout {
|
pub struct GuiLayout {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ComponentLayout {
|
impl GuiLayout {
|
||||||
pub fn new() -> ComponentLayout {
|
pub fn new() -> GuiLayout {
|
||||||
let parsed_layout_tree = Self::parse_xml_file("gui/window/main.xml").unwrap();
|
let parsed_layout_tree = Self::parse_xml_file("gui/window/main.xml").unwrap();
|
||||||
Self::interpret_abstract_syntax_tree(parsed_layout_tree);
|
Self::interpret_abstract_syntax_tree(parsed_layout_tree);
|
||||||
Self {}
|
Self {}
|
||||||
|
|
@ -9,7 +9,7 @@ mod draw_command;
|
||||||
mod gui_node;
|
mod gui_node;
|
||||||
mod gui_attributes;
|
mod gui_attributes;
|
||||||
mod window_events;
|
mod window_events;
|
||||||
mod component_layout;
|
mod gui_layout;
|
||||||
mod layout_parsed_node;
|
mod layout_parsed_node;
|
||||||
|
|
||||||
use application::Application;
|
use application::Application;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue