Add an API for setting a window's title
This controls how the window appears in the Window menu.
This commit is contained in:
parent
f4d13ef596
commit
04bd57b2c7
5 changed files with 44 additions and 3 deletions
|
@ -96,6 +96,7 @@ pub trait Window: WindowContext {
|
|||
fn on_close(&mut self, callback: Box<dyn FnOnce()>);
|
||||
fn prompt(&self, level: PromptLevel, msg: &str, answers: &[&str]) -> oneshot::Receiver<usize>;
|
||||
fn activate(&self);
|
||||
fn set_title(&mut self, title: &str);
|
||||
}
|
||||
|
||||
pub trait WindowContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue