i_slint_core::window::popup

Function place_popup

Source
pub fn place_popup(
    placement: Placement,
    clip_region: &Option<LogicalRect>,
) -> LogicalRect
Expand description

Find a placement for the Popup, using the provided Placement. When a clip_region is provided, then the Popup will stay within those bounds. The clip_region typically is the window or the screen the window is on.