|
|
@ -88,7 +88,7 @@ impl GlutinWindowWrapper {
|
|
|
|
WindowCommand::TitleChanged(new_title) => self.handle_title_changed(new_title),
|
|
|
|
WindowCommand::TitleChanged(new_title) => self.handle_title_changed(new_title),
|
|
|
|
WindowCommand::SetMouseEnabled(mouse_enabled) => {
|
|
|
|
WindowCommand::SetMouseEnabled(mouse_enabled) => {
|
|
|
|
self.mouse_manager.enabled = mouse_enabled
|
|
|
|
self.mouse_manager.enabled = mouse_enabled
|
|
|
|
},
|
|
|
|
}
|
|
|
|
WindowCommand::ListAvailableFonts => self.send_font_names(),
|
|
|
|
WindowCommand::ListAvailableFonts => self.send_font_names(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -101,7 +101,11 @@ impl GlutinWindowWrapper {
|
|
|
|
|
|
|
|
|
|
|
|
pub fn send_font_names(&self) {
|
|
|
|
pub fn send_font_names(&self) {
|
|
|
|
let font_names = self.renderer.font_names();
|
|
|
|
let font_names = self.renderer.font_names();
|
|
|
|
self.ui_command_sender.send(UiCommand::Parallel(ParallelCommand::DisplayAvailableFonts(font_names))).unwrap();
|
|
|
|
self.ui_command_sender
|
|
|
|
|
|
|
|
.send(UiCommand::Parallel(ParallelCommand::DisplayAvailableFonts(
|
|
|
|
|
|
|
|
font_names,
|
|
|
|
|
|
|
|
)))
|
|
|
|
|
|
|
|
.unwrap();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn handle_quit(&mut self) {
|
|
|
|
pub fn handle_quit(&mut self) {
|
|
|
|