mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
...as after #4590, `Window`/`Area` is not constrained within it.
This commit is contained in:
@@ -2549,10 +2549,7 @@ impl Context {
|
|||||||
self.input(|i| i.screen_rect()).round_ui()
|
self.input(|i| i.screen_rect()).round_ui()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// How much space is still available after panels has been added.
|
/// How much space is still available after panels have been added.
|
||||||
///
|
|
||||||
/// This is the "background" area, what egui doesn't cover with panels (but may cover with windows).
|
|
||||||
/// This is also the area to which windows are constrained.
|
|
||||||
pub fn available_rect(&self) -> Rect {
|
pub fn available_rect(&self) -> Rect {
|
||||||
self.pass_state(|s| s.available_rect()).round_ui()
|
self.pass_state(|s| s.available_rect()).round_ui()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -202,7 +202,6 @@ pub struct PassState {
|
|||||||
|
|
||||||
/// Starts off as the `screen_rect`, shrinks as panels are added.
|
/// Starts off as the `screen_rect`, shrinks as panels are added.
|
||||||
/// The [`crate::CentralPanel`] does not change this.
|
/// The [`crate::CentralPanel`] does not change this.
|
||||||
/// This is the area available to Window's.
|
|
||||||
pub available_rect: Rect,
|
pub available_rect: Rect,
|
||||||
|
|
||||||
/// Starts off as the `screen_rect`, shrinks as panels are added.
|
/// Starts off as the `screen_rect`, shrinks as panels are added.
|
||||||
@@ -303,8 +302,6 @@ impl PassState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// How much space is still available after panels has been added.
|
/// How much space is still available after panels has been added.
|
||||||
/// This is the "background" area, what egui doesn't cover with panels (but may cover with windows).
|
|
||||||
/// This is also the area to which windows are constrained.
|
|
||||||
pub(crate) fn available_rect(&self) -> Rect {
|
pub(crate) fn available_rect(&self) -> Rect {
|
||||||
debug_assert!(
|
debug_assert!(
|
||||||
self.available_rect.is_finite(),
|
self.available_rect.is_finite(),
|
||||||
|
|||||||
Reference in New Issue
Block a user