We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fa02f7 commit cb258b6Copy full SHA for cb258b6
2 files changed
plugin-canvas-slint/src/editor.rs
@@ -72,6 +72,11 @@ pub struct EditorHandle {
72
}
73
74
impl EditorHandle {
75
+ pub fn window(&self) -> Option<&plugin_canvas::Window> {
76
+ self.window_adapter()
77
+ .map(|window_adapter| window_adapter.plugin_canvas_window())
78
+ }
79
+
80
pub fn on_frame(&self) {
81
self.on_event(&Event::Draw);
82
plugin-canvas-slint/src/window_adapter.rs
@@ -291,6 +291,10 @@ impl PluginCanvasWindowAdapter {
291
292
293
294
+ pub(crate) fn plugin_canvas_window(&self) -> &plugin_canvas::Window {
295
+ &self.plugin_canvas_window
296
297
298
fn convert_button(button: &plugin_canvas::MouseButton) -> i_slint_core::platform::PointerEventButton {
299
match button {
300
plugin_canvas::MouseButton::Left => i_slint_core::platform::PointerEventButton::Left,
0 commit comments