From be697d186b05313f09b0529b3dce42c758bf8030 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:48:11 +0200 Subject: [PATCH] more --- src/main.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/main.rs b/src/main.rs index c4dde62..c8afe42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,37 +43,7 @@ impl std::fmt::Debug for TileDb { } pub struct PlatformOutput { - /// Set the cursor to this icon. - pub cursor_icon: (), - - /// If set, open this url. - pub open_url: Option<()>, - - /// If set, put this text in the system clipboard. Ignore if empty. - /// - /// This is often a response to [`crate::Event::Copy`] or [`crate::Event::Cut`]. - /// - /// ``` - /// # egui::__run_test_ui(|ui| { - /// if ui.button("📋").clicked() { - /// ui.output_mut(|o| o.copied_text = "some_text".to_string()); - /// } - /// # }); - /// ``` pub copied_text: String, - - /// Events that may be useful to e.g. a screen reader. - pub events: Vec<()>, - - /// Is there a mutable [`TextEdit`](crate::TextEdit) under the cursor? - /// Use by `eframe` web to show/hide mobile keyboard and IME agent. - pub mutable_text_under_cursor: bool, - - /// Screen-space position of text edit cursor (used for IME). - pub text_cursor_pos: Option<()>, - - #[cfg(feature = "accesskit")] - pub accesskit_update: Option, } pub fn output_mut(writer: impl FnOnce(&mut PlatformOutput) -> R) -> R {