feat: subsurfaces
This commit is contained in:
parent
0f37c9922d
commit
93bc4bbd88
33 changed files with 1898 additions and 2651 deletions
|
|
@ -5,3 +5,4 @@ pub mod layer_surface;
|
|||
pub mod overlap_notify;
|
||||
pub mod popup;
|
||||
pub mod session_lock;
|
||||
pub mod subsurface;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
use crate::core::window::Id as SurfaceId;
|
||||
use cctk::sctk::reexports::client::protocol::wl_output::WlOutput;
|
||||
use iced_runtime::{
|
||||
self,
|
||||
platform_specific::{self, wayland},
|
||||
task, Action, Task,
|
||||
};
|
||||
use cctk::sctk::reexports::client::protocol::wl_output::WlOutput;
|
||||
|
||||
pub fn lock<Message>() -> Task<Message> {
|
||||
task::effect(Action::PlatformSpecific(
|
||||
|
|
|
|||
28
winit/src/platform_specific/wayland/commands/subsurface.rs
Normal file
28
winit/src/platform_specific/wayland/commands/subsurface.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
use crate::core::window::Id as SurfaceId;
|
||||
pub use cctk::sctk::shell::wlr_layer::{Anchor, KeyboardInteractivity, Layer};
|
||||
use iced_runtime::{
|
||||
self,
|
||||
platform_specific::{
|
||||
self,
|
||||
wayland::{self, subsurface::SctkSubsurfaceSettings},
|
||||
},
|
||||
task, Action, Task,
|
||||
};
|
||||
|
||||
pub fn get_subsurface<Message>(
|
||||
subsurface: SctkSubsurfaceSettings,
|
||||
) -> Task<Message> {
|
||||
task::effect(Action::PlatformSpecific(
|
||||
platform_specific::Action::Wayland(wayland::Action::Subsurface(
|
||||
wayland::subsurface::Action::Subsurface { subsurface },
|
||||
)),
|
||||
))
|
||||
}
|
||||
|
||||
pub fn destroy_subsurface<Message>(id: SurfaceId) -> Task<Message> {
|
||||
task::effect(Action::PlatformSpecific(
|
||||
platform_specific::Action::Wayland(wayland::Action::Subsurface(
|
||||
wayland::subsurface::Action::Destroy { id },
|
||||
)),
|
||||
))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue