feat(wayland): corner-radius protocol support
This commit is contained in:
parent
54a69a0523
commit
e73bbddbca
10 changed files with 252 additions and 62 deletions
|
|
@ -0,0 +1,20 @@
|
|||
use iced_futures::core::{border::Radius, window};
|
||||
use iced_runtime::{
|
||||
self,
|
||||
platform_specific::{
|
||||
self,
|
||||
wayland::{self, CornerRadius},
|
||||
},
|
||||
task, Action, Task,
|
||||
};
|
||||
|
||||
pub fn corner_radius(
|
||||
id: window::Id,
|
||||
corners: Option<CornerRadius>,
|
||||
) -> Task<()> {
|
||||
task::oneshot(|_| {
|
||||
Action::PlatformSpecific(platform_specific::Action::Wayland(
|
||||
wayland::Action::RoundedCorners(id, corners),
|
||||
))
|
||||
})
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
//! Interact with the wayland objects of your application.
|
||||
|
||||
pub mod activation;
|
||||
pub mod corner_radius;
|
||||
pub mod keyboard_shortcuts_inhibit;
|
||||
pub mod layer_surface;
|
||||
pub mod overlap_notify;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue