mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Remove Order::PanelResizeLine (#5455)
This was a hack that is no longer in use
This commit is contained in:
@@ -11,9 +11,6 @@ pub enum Order {
|
|||||||
/// Painted behind all floating windows
|
/// Painted behind all floating windows
|
||||||
Background,
|
Background,
|
||||||
|
|
||||||
/// Special layer between panels and windows
|
|
||||||
PanelResizeLine,
|
|
||||||
|
|
||||||
/// Normal moveable windows that you reorder by click
|
/// Normal moveable windows that you reorder by click
|
||||||
Middle,
|
Middle,
|
||||||
|
|
||||||
@@ -30,10 +27,9 @@ pub enum Order {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Order {
|
impl Order {
|
||||||
const COUNT: usize = 6;
|
const COUNT: usize = 5;
|
||||||
const ALL: [Self; Self::COUNT] = [
|
const ALL: [Self; Self::COUNT] = [
|
||||||
Self::Background,
|
Self::Background,
|
||||||
Self::PanelResizeLine,
|
|
||||||
Self::Middle,
|
Self::Middle,
|
||||||
Self::Foreground,
|
Self::Foreground,
|
||||||
Self::Tooltip,
|
Self::Tooltip,
|
||||||
@@ -44,12 +40,9 @@ impl Order {
|
|||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn allow_interaction(&self) -> bool {
|
pub fn allow_interaction(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Self::Background
|
Self::Background | Self::Middle | Self::Foreground | Self::Tooltip | Self::Debug => {
|
||||||
| Self::PanelResizeLine
|
true
|
||||||
| Self::Middle
|
}
|
||||||
| Self::Foreground
|
|
||||||
| Self::Tooltip
|
|
||||||
| Self::Debug => true,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +50,6 @@ impl Order {
|
|||||||
pub fn short_debug_format(&self) -> &'static str {
|
pub fn short_debug_format(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Self::Background => "backg",
|
Self::Background => "backg",
|
||||||
Self::PanelResizeLine => "panel",
|
|
||||||
Self::Middle => "middl",
|
Self::Middle => "middl",
|
||||||
Self::Foreground => "foreg",
|
Self::Foreground => "foreg",
|
||||||
Self::Tooltip => "toolt",
|
Self::Tooltip => "toolt",
|
||||||
|
|||||||
Reference in New Issue
Block a user