@@ -405,6 +405,7 @@ enum WindowMessage {
405405 IsMaximized ( Sender < bool > ) ,
406406 IsDecorated ( Sender < bool > ) ,
407407 IsResizable ( Sender < bool > ) ,
408+ IsVisible ( Sender < bool > ) ,
408409 CurrentMonitor ( Sender < Option < MonitorHandle > > ) ,
409410 PrimaryMonitor ( Sender < Option < MonitorHandle > > ) ,
410411 AvailableMonitors ( Sender < Vec < MonitorHandle > > ) ,
@@ -548,6 +549,10 @@ impl Dispatch for WryDispatcher {
548549 Ok ( dispatcher_getter ! ( self , WindowMessage :: IsResizable ) )
549550 }
550551
552+ fn is_visible ( & self ) -> Result < bool > {
553+ Ok ( dispatcher_getter ! ( self , WindowMessage :: IsVisible ) )
554+ }
555+
551556 fn current_monitor ( & self ) -> Result < Option < Monitor > > {
552557 Ok (
553558 dispatcher_getter ! ( self , WindowMessage :: CurrentMonitor )
@@ -1160,6 +1165,7 @@ fn handle_event_loop(
11601165 WindowMessage :: IsMaximized ( tx) => tx. send ( window. is_maximized ( ) ) . unwrap ( ) ,
11611166 WindowMessage :: IsDecorated ( tx) => tx. send ( window. is_decorated ( ) ) . unwrap ( ) ,
11621167 WindowMessage :: IsResizable ( tx) => tx. send ( window. is_resizable ( ) ) . unwrap ( ) ,
1168+ WindowMessage :: IsVisible ( tx) => tx. send ( window. is_visible ( ) ) . unwrap ( ) ,
11631169 WindowMessage :: CurrentMonitor ( tx) => tx. send ( window. current_monitor ( ) ) . unwrap ( ) ,
11641170 WindowMessage :: PrimaryMonitor ( tx) => tx. send ( window. primary_monitor ( ) ) . unwrap ( ) ,
11651171 WindowMessage :: AvailableMonitors ( tx) => {
0 commit comments