Trait FloatingSurfaceWidgetExt
pub trait FloatingSurfaceWidgetExt {
Show 15 methods
// Required methods
fn on_floating_surface_focus_changed(
&mut self,
id: Option<&str>,
focused: bool,
);
fn on_floating_surface_ime_source_changed(&mut self, id: Option<&str>);
fn on_floating_surface_event_source(&mut self, id: Option<&str>);
fn floating_surface_accessibility(&self, id: &str) -> Option<AccessNode>;
fn perform_floating_surface_accessibility_action(
&mut self,
id: &str,
target: &str,
action: &Action,
state: &mut Edits<'_>,
path: &ExId,
) -> bool;
fn floating_surface_ime(&self, id: &str) -> Option<(ImePurpose, Rect)>;
fn take_floating_surface_request(
&mut self,
) -> Option<FloatingSurfaceRequest>;
fn take_capture_studio_request(&mut self) -> Option<CaptureMode>;
fn take_floating_surface_source_updates(&mut self) -> Vec<(String, Rect)>;
fn draw_floating_surfaces(
&mut self,
scene: &mut Scene,
transform: Affine,
text_renderer: &mut TextRenderer,
theme: &Theme,
presence: &PresenceCtx,
);
fn draw_floating_surface(
&mut self,
id: &str,
scene: &mut Scene,
transform: Affine,
text_renderer: &mut TextRenderer,
theme: &Theme,
presence: &PresenceCtx,
) -> bool;
fn floating_surface_presentations(&self) -> Vec<FloatingSurfacePresentation>;
fn active_floating_surface_ids(&self) -> Vec<String>;
fn set_floating_surface_bounds(&mut self, bounds: Rect);
fn on_floating_surface_host_message(
&mut self,
message: &FloatingSurfaceHostMessage,
);
}Expand description
Ergonomic forwarding API for optional floating-surface capabilities.
This keeps host/container call sites concise while the core Widget
contract contains only capability accessors.