feat(wayland): corner-radius protocol support

This commit is contained in:
Ashley Wulber 2025-09-24 15:55:34 -04:00 committed by Ashley Wulber
parent 43314e3e6a
commit 9815d4d981
7 changed files with 355 additions and 28 deletions

View file

@ -36,6 +36,22 @@ pub enum Action {
),
/// Destroy a subsurface with a view function
DestroyPopup(iced::window::Id),
/// Create a window with a view function accepting the App as a parameter
AppWindow(
iced::window::Id,
std::sync::Arc<Box<dyn std::any::Any + Send + Sync>>,
Option<std::sync::Arc<Box<dyn std::any::Any + Send + Sync>>>,
),
/// Create a window with a view function
Window(
iced::window::Id,
std::sync::Arc<Box<dyn std::any::Any + Send + Sync>>,
Option<std::sync::Arc<Box<dyn std::any::Any + Send + Sync>>>,
),
/// Destroy a window
DestroyWindow(iced::window::Id),
/// Responsive menu bar update
ResponsiveMenuBar {
/// Id of the menu bar
@ -80,6 +96,15 @@ impl std::fmt::Debug for Action {
.field("size", size)
.finish(),
Self::Ignore => write!(f, "Ignore"),
Self::AppWindow(id, arg0, arg1) => {
f.debug_tuple("AppWindow").field(id).field(arg0).field(arg1).finish()
}
Self::Window(id, arg0, arg1) => {
f.debug_tuple("Window").field(id).field(arg0).field(arg1).finish()
}
Self::DestroyWindow(arg0) => {
f.debug_tuple("DestroyWindow").field(arg0).finish()
}
Self::Task(_) => f.debug_tuple("Future").finish(),
}
}