@@ -283,14 +283,17 @@ pub struct ViewportBuilder {
283
283
pub icon : Option < Arc < IconData > > ,
284
284
pub active : Option < bool > ,
285
285
pub visible : Option < bool > ,
286
- pub drag_and_drop : Option < bool > ,
287
286
288
287
// macOS:
289
288
pub fullsize_content_view : Option < bool > ,
290
289
pub title_shown : Option < bool > ,
291
290
pub titlebar_buttons_shown : Option < bool > ,
292
291
pub titlebar_shown : Option < bool > ,
293
292
293
+ // windows:
294
+ pub drag_and_drop : Option < bool > ,
295
+ pub taskbar : Option < bool > ,
296
+
294
297
pub close_button : Option < bool > ,
295
298
pub minimize_button : Option < bool > ,
296
299
pub maximize_button : Option < bool > ,
@@ -442,6 +445,13 @@ impl ViewportBuilder {
442
445
self
443
446
}
444
447
448
+ /// windows: Whether show or hide the window icon in the taskbar.
449
+ #[ inline]
450
+ pub fn with_taskbar ( mut self , show : bool ) -> Self {
451
+ self . taskbar = Some ( show) ;
452
+ self
453
+ }
454
+
445
455
/// Requests the window to be of specific dimensions.
446
456
///
447
457
/// If this is not set, some platform-specific dimensions will be used.
@@ -602,6 +612,7 @@ impl ViewportBuilder {
602
612
maximize_button : new_maximize_button,
603
613
window_level : new_window_level,
604
614
mouse_passthrough : new_mouse_passthrough,
615
+ taskbar : new_taskbar,
605
616
} = new_vp_builder;
606
617
607
618
let mut commands = Vec :: new ( ) ;
@@ -758,6 +769,11 @@ impl ViewportBuilder {
758
769
recreate_window = true ;
759
770
}
760
771
772
+ if new_taskbar. is_some ( ) && self . taskbar != new_taskbar {
773
+ self . taskbar = new_taskbar;
774
+ recreate_window = true ;
775
+ }
776
+
761
777
if new_fullsize_content_view. is_some ( )
762
778
&& self . fullsize_content_view != new_fullsize_content_view
763
779
{
0 commit comments