mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
fix-inconsistent-naming (#3438)
This commit is contained in:
@@ -155,7 +155,7 @@ impl Area {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Constraint the movement of the window to the given rectangle.
|
/// Constrain the movement of the window to the given rectangle.
|
||||||
///
|
///
|
||||||
/// For instance: `.constrain_to(ctx.screen_rect())`.
|
/// For instance: `.constrain_to(ctx.screen_rect())`.
|
||||||
pub fn constrain_to(mut self, constrain_rect: Rect) -> Self {
|
pub fn constrain_to(mut self, constrain_rect: Rect) -> Self {
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ impl<'open> Window<'open> {
|
|||||||
|
|
||||||
/// Constrains this window to the screen bounds.
|
/// Constrains this window to the screen bounds.
|
||||||
///
|
///
|
||||||
/// To change the area to constrain to, use [`Self::constraint_to`].
|
/// To change the area to constrain to, use [`Self::constrain_to`].
|
||||||
///
|
///
|
||||||
/// Default: `true`.
|
/// Default: `true`.
|
||||||
pub fn constrain(mut self, constrain: bool) -> Self {
|
pub fn constrain(mut self, constrain: bool) -> Self {
|
||||||
@@ -155,10 +155,10 @@ impl<'open> Window<'open> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Constraint the movement of the window to the given rectangle.
|
/// Constrain the movement of the window to the given rectangle.
|
||||||
///
|
///
|
||||||
/// For instance: `.constrain_to(ctx.screen_rect())`.
|
/// For instance: `.constrain_to(ctx.screen_rect())`.
|
||||||
pub fn constraint_to(mut self, constrain_rect: Rect) -> Self {
|
pub fn constrain_to(mut self, constrain_rect: Rect) -> Self {
|
||||||
self.area = self.area.constrain_to(constrain_rect);
|
self.area = self.area.constrain_to(constrain_rect);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user