You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/window.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,14 @@ impl Window {
151
151
self.inner.is_open()
152
152
}
153
153
154
+
/// Returns `true` if the window can be resized by the user, `false` otherwise.
155
+
///
156
+
/// This is set by the [`WindowSettings::resizable`] field.
157
+
#[inline]
158
+
pubfnis_resizable(&self) -> bool{
159
+
self.inner.is_resizable()
160
+
}
161
+
154
162
/// Performs the work the window thread had scheduled for the main thread.
155
163
///
156
164
/// This must be called back on the main thread, as a response to [`HostMainThreadCaller::call_main_thread`](host::HostMainThreadCaller::call_main_thread).
0 commit comments