Improve documentation of Window/Area::resizable

This commit is contained in:
Emil Ernerfeldt 2023-08-09 17:13:10 +02:00
parent 92593b70fa
commit 51da2ac490
2 changed files with 7 additions and 1 deletions

View File

@ -124,7 +124,10 @@ impl Resize {
} }
/// Can you resize it with the mouse? /// Can you resize it with the mouse?
/// Note that a window can still auto-resize ///
/// Note that a window can still auto-resize.
///
/// Default is `true`.
pub fn resizable(mut self, resizable: bool) -> Self { pub fn resizable(mut self, resizable: bool) -> Self {
self.resizable = resizable; self.resizable = resizable;
self self

View File

@ -217,7 +217,10 @@ impl<'open> Window<'open> {
} }
/// Can the user resize the window by dragging its edges? /// Can the user resize the window by dragging its edges?
///
/// Note that even if you set this to `false` the window may still auto-resize. /// Note that even if you set this to `false` the window may still auto-resize.
///
/// Default is `true`.
pub fn resizable(mut self, resizable: bool) -> Self { pub fn resizable(mut self, resizable: bool) -> Self {
self.resize = self.resize.resizable(resizable); self.resize = self.resize.resizable(resizable);
self self