blur command helper
This commit is contained in:
parent
b8b0804140
commit
6be49cb530
2 changed files with 18 additions and 0 deletions
17
winit/src/platform_specific/wayland/commands/blur.rs
Normal file
17
winit/src/platform_specific/wayland/commands/blur.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
use iced_futures::core::window;
|
||||||
|
use iced_runtime::{
|
||||||
|
self, Action, Task,
|
||||||
|
platform_specific::{self, wayland},
|
||||||
|
task,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn blur(
|
||||||
|
id: window::Id,
|
||||||
|
blur: Option<Vec<iced_runtime::core::Rectangle>>,
|
||||||
|
) -> Task<()> {
|
||||||
|
task::oneshot(|_| {
|
||||||
|
Action::PlatformSpecific(platform_specific::Action::Wayland(
|
||||||
|
wayland::Action::BlurSurface(id, blur),
|
||||||
|
))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
//! Interact with the wayland objects of your application.
|
//! Interact with the wayland objects of your application.
|
||||||
|
|
||||||
pub mod activation;
|
pub mod activation;
|
||||||
|
pub mod blur;
|
||||||
pub mod corner_radius;
|
pub mod corner_radius;
|
||||||
pub mod keyboard_shortcuts_inhibit;
|
pub mod keyboard_shortcuts_inhibit;
|
||||||
pub mod layer_surface;
|
pub mod layer_surface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue