forked from rust-windowing/winit
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dummy menu for the web platform (#7)
* Add dummy menu for the web platform * Bump web-time version
- Loading branch information
1 parent
08a3dfc
commit c8d3b8f
Showing
3 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// Dummy menu: there is no generic menu for web applications | ||
pub struct Menu; | ||
|
||
impl Menu { | ||
pub fn new() -> Menu { | ||
Menu | ||
} | ||
|
||
pub fn new_for_popup() -> Menu { | ||
Menu | ||
} | ||
|
||
pub fn add_dropdown(&mut self, _menu: Menu, _text: &str, _enabled: bool) {} | ||
|
||
pub fn add_item(&mut self, _id: u32, _text: &str, _selected: Option<bool>, _enabled: bool) {} | ||
|
||
pub fn add_separator(&mut self) {} | ||
} |
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