-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Brickworks/gui
WIP user interface plus some simulation rewrites
- Loading branch information
Showing
15 changed files
with
685 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
mod controls; | ||
mod monitors; | ||
mod shell; | ||
|
||
pub use shell::Shell; | ||
|
||
/// Something to view in the monitor windows | ||
pub trait View { | ||
fn ui(&mut self, ui: &mut egui::Ui); | ||
} | ||
|
||
/// Something to view | ||
pub trait UiPanel { | ||
/// Is the monitor enabled for this integration? | ||
fn is_enabled(&self, _ctx: &egui::Context) -> bool { | ||
true | ||
} | ||
|
||
/// `&'static` so we can also use it as a key to store open/close state. | ||
fn name(&self) -> &'static str; | ||
|
||
/// Show windows, etc | ||
fn show(&mut self, ctx: &egui::Context, open: &mut bool); | ||
} |
Oops, something went wrong.