summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-07 09:49:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-07 09:49:19 +0100
commit2a544dca2f573d846e525ff65e153c261b16880d (patch)
tree250f642fa1e32a14f71abc615902bcafd1843a3e /runtime
parentf18a81451fffa2ead0eb6be72f9a32f5f683a016 (diff)
downloadiced-2a544dca2f573d846e525ff65e153c261b16880d.tar.gz
iced-2a544dca2f573d846e525ff65e153c261b16880d.tar.bz2
iced-2a544dca2f573d846e525ff65e153c261b16880d.zip
Fix documentation of `Action::RunWithHandle`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/window/action.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/window/action.rs b/runtime/src/window/action.rs
index 532c1243..86d58528 100644
--- a/runtime/src/window/action.rs
+++ b/runtime/src/window/action.rs
@@ -98,7 +98,7 @@ pub enum Action<T> {
/// - **X11:** Has no universal guidelines for icon sizes, so you're at the whims of the WM. That
/// said, it's usually in the same ballpark as on Windows.
ChangeIcon(Id, Icon),
- /// Requests access to the windows native handle.
+ /// Runs the closure with the native window handle of the window with the given [`Id`].
RunWithHandle(Id, Box<dyn FnOnce(&WindowHandle<'_>) -> T + 'static>),
/// Screenshot the viewport of the window.
Screenshot(Id, Box<dyn FnOnce(Screenshot) -> T + 'static>),