mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Improve documentation of Window/Area::resizable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user