change names of modules
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
mod prometeu_hub;
|
||||
|
||||
pub use prometeu_hub::PrometeuHub;
|
||||
@@ -0,0 +1,37 @@
|
||||
use crate::model::Color;
|
||||
use crate::prometeu_os::PrometeuOS;
|
||||
|
||||
// TODO: Mover para arquivo próprio se crescer.
|
||||
/// Sistema de janelas do PROMETEU.
|
||||
pub struct WindowSystem {
|
||||
pub theme_color: Color,
|
||||
}
|
||||
|
||||
impl WindowSystem {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
theme_color: Color::INDIGO,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// PrometeuHub: Launcher e ambiente de UI do sistema.
|
||||
pub struct PrometeuHub {
|
||||
pub window_system: WindowSystem,
|
||||
}
|
||||
|
||||
impl PrometeuHub {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
window_system: WindowSystem::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn init(&mut self) {
|
||||
// Inicializa o Window System e lista apps
|
||||
}
|
||||
|
||||
pub fn gui_update(&mut self, _os: &mut PrometeuOS) {
|
||||
// Atualiza a UI do Window System
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user