Skip to main content

TextSelectionMenu

Function TextSelectionMenu 

Source
pub fn TextSelectionMenu(
    __arg0: f32,
    __arg1: f32,
    __arg2: bool,
    __arg3: Option<Point>,
    __arg4: bool,
    on_copy: impl Fn() + 'static,
    on_cut: impl Fn() + 'static,
    on_paste: impl Fn() + 'static,
    on_select_all: impl Fn() + 'static,
)
Expand description

A floating Copy / Cut / Paste / Select-all menu shown just above the text selection. center_x / line_top_y anchor it over the selection; visible is false while a handle drag is in flight. can_paste hides the Paste item when the clipboard is empty. Each action runs against the focused field; the caller is expected to dismiss the menu.