|
@@ -405,6 +405,7 @@ enum WindowMessage {
|
|
|
IsMaximized(Sender<bool>),
|
|
|
IsDecorated(Sender<bool>),
|
|
|
IsResizable(Sender<bool>),
|
|
|
+ IsVisible(Sender<bool>),
|
|
|
CurrentMonitor(Sender<Option<MonitorHandle>>),
|
|
|
PrimaryMonitor(Sender<Option<MonitorHandle>>),
|
|
|
AvailableMonitors(Sender<Vec<MonitorHandle>>),
|
|
@@ -548,6 +549,10 @@ impl Dispatch for WryDispatcher {
|
|
|
Ok(dispatcher_getter!(self, WindowMessage::IsResizable))
|
|
|
}
|
|
|
|
|
|
+ fn is_visible(&self) -> Result<bool> {
|
|
|
+ Ok(dispatcher_getter!(self, WindowMessage::IsVisible))
|
|
|
+ }
|
|
|
+
|
|
|
fn current_monitor(&self) -> Result<Option<Monitor>> {
|
|
|
Ok(
|
|
|
dispatcher_getter!(self, WindowMessage::CurrentMonitor)
|
|
@@ -1160,6 +1165,7 @@ fn handle_event_loop(
|
|
|
WindowMessage::IsMaximized(tx) => tx.send(window.is_maximized()).unwrap(),
|
|
|
WindowMessage::IsDecorated(tx) => tx.send(window.is_decorated()).unwrap(),
|
|
|
WindowMessage::IsResizable(tx) => tx.send(window.is_resizable()).unwrap(),
|
|
|
+ WindowMessage::IsVisible(tx) => tx.send(window.is_visible()).unwrap(),
|
|
|
WindowMessage::CurrentMonitor(tx) => tx.send(window.current_monitor()).unwrap(),
|
|
|
WindowMessage::PrimaryMonitor(tx) => tx.send(window.primary_monitor()).unwrap(),
|
|
|
WindowMessage::AvailableMonitors(tx) => {
|