Skip to content

Commit

Permalink
Remove Order::PanelResizeLine (#5455)
Browse files Browse the repository at this point in the history
This was a hack that is no longer in use
  • Loading branch information
emilk authored Dec 10, 2024
1 parent 13352d6 commit a7539b2
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions crates/egui/src/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ pub enum Order {
/// Painted behind all floating windows
Background,

/// Special layer between panels and windows
PanelResizeLine,

/// Normal moveable windows that you reorder by click
Middle,

Expand All @@ -30,10 +27,9 @@ pub enum Order {
}

impl Order {
const COUNT: usize = 6;
const COUNT: usize = 5;
const ALL: [Self; Self::COUNT] = [
Self::Background,
Self::PanelResizeLine,
Self::Middle,
Self::Foreground,
Self::Tooltip,
Expand All @@ -44,20 +40,16 @@ impl Order {
#[inline(always)]
pub fn allow_interaction(&self) -> bool {
match self {
Self::Background
| Self::PanelResizeLine
| Self::Middle
| Self::Foreground
| Self::Tooltip
| Self::Debug => true,
Self::Background | Self::Middle | Self::Foreground | Self::Tooltip | Self::Debug => {
true
}
}
}

/// Short and readable summary
pub fn short_debug_format(&self) -> &'static str {
match self {
Self::Background => "backg",
Self::PanelResizeLine => "panel",
Self::Middle => "middl",
Self::Foreground => "foreg",
Self::Tooltip => "toolt",
Expand Down

0 comments on commit a7539b2

Please sign in to comment.