@@ -25,6 +25,7 @@ use crate::runtime::menu::Menu;
2525#[ cfg( feature = "system-tray" ) ]
2626use crate :: runtime:: { menu:: SystemTrayMenuItem , Icon } ;
2727
28+ use crate :: manager:: DefaultArgs ;
2829#[ cfg( feature = "updater" ) ]
2930use crate :: updater;
3031
@@ -53,7 +54,7 @@ impl<I: MenuId> SystemTrayEvent<I> {
5354/// A menu event that was triggered on a window.
5455#[ cfg( feature = "menu" ) ]
5556#[ cfg_attr( doc_cfg, doc( cfg( feature = "menu" ) ) ) ]
56- pub struct WindowMenuEvent < P : Params > {
57+ pub struct WindowMenuEvent < P : Params = DefaultArgs > {
5758 pub ( crate ) menu_item_id : P :: MenuId ,
5859 pub ( crate ) window : Window < P > ,
5960}
@@ -72,7 +73,7 @@ impl<P: Params> WindowMenuEvent<P> {
7273}
7374
7475/// A window event that was triggered on the specified window.
75- pub struct GlobalWindowEvent < P : Params > {
76+ pub struct GlobalWindowEvent < P : Params = DefaultArgs > {
7677 pub ( crate ) event : WindowEvent ,
7778 pub ( crate ) window : Window < P > ,
7879}
@@ -90,7 +91,7 @@ impl<P: Params> GlobalWindowEvent<P> {
9091}
9192
9293/// A handle to the currently running application.
93- pub struct AppHandle < P : Params > {
94+ pub struct AppHandle < P : Params = DefaultArgs > {
9495 manager : WindowManager < P > ,
9596}
9697
@@ -104,7 +105,7 @@ impl<P: Params> ManagerBase<P> for AppHandle<P> {
104105/// The instance of the currently running application.
105106///
106107/// This type implements [`Manager`] which allows for manipulation of global application items.
107- pub struct App < P : Params > {
108+ pub struct App < P : Params = DefaultArgs > {
108109 runtime : P :: Runtime ,
109110 manager : WindowManager < P > ,
110111}
0 commit comments