diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index da4d2bc43589..82ea64df34ac 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -172,6 +172,21 @@ impl State { self.egui_input.max_texture_side = Some(max_texture_side); } + /// Returns the used clipboard. + pub fn clipboard(&mut self) -> &mut clipboard::Clipboard { + &mut self.clipboard + } + + /// Returns whether the window should get IME events. + pub fn allow_ime(&self) -> bool { + self.allow_ime + } + + /// Returns whether the window should get IME events. + pub fn allow_ime_mut(&self) -> &mut bool { + &mut self.allow_ime + } + #[inline] pub fn egui_ctx(&self) -> &egui::Context { &self.egui_ctx