//! Interact with the popups of your application. use crate::core::window::Id as SurfaceId; use iced_runtime::{ self, Action, Task, platform_specific::{ self, wayland::{ self, popup::{SctkPopupSettings, SctkPositioner}, }, }, task, }; /// /// pub fn get_popup(popup: SctkPopupSettings) -> Task { task::effect(Action::PlatformSpecific( platform_specific::Action::Wayland(wayland::Action::Popup( wayland::popup::Action::Popup { popup }, )), )) } /// pub fn set_size( id: SurfaceId, width: u32, height: u32, ) -> Task { task::effect(Action::PlatformSpecific( platform_specific::Action::Wayland(wayland::Action::Popup( wayland::popup::Action::Size { id, width, height }, )), )) } /// pub fn reposition( id: SurfaceId, positioner: SctkPositioner, ) -> Task { task::effect(Action::PlatformSpecific( platform_specific::Action::Wayland(wayland::Action::Popup( wayland::popup::Action::Reposition { id, positioner }, )), )) } /// pub fn destroy_popup(id: SurfaceId) -> Task { task::effect(Action::PlatformSpecific( platform_specific::Action::Wayland(wayland::Action::Popup( wayland::popup::Action::Destroy { id }, )), )) }