Copy the selection to the clipboard.
- ui: the UI whose clipboard hooks and text measuring to use.
- edit: the text being edited.
edit: Text_Edit;
defer free_text_edit(*edit);
ui := headless();
defer free_ui(*ui);
copy_selection(*ui, *edit); // puts the selection on the clipboardThis one is only checked to compile, not run.
copy_selection :: (ui: *UI_State, edit: *Text_Edit)
Copy the selection to the clipboard.
Parameters
- ui: *UI_State
- the UI whose clipboard hooks and text measuring to use.
- edit: *Text_Edit
- the text being edited.
edit: Text_Edit;
defer free_text_edit(*edit);
ui := headless();
defer free_ui(*ui);
copy_selection(*ui, *edit); // puts the selection on the clipboardThis one is only checked to compile, not run.