Improve outline panel entries' revealing and grouping (#13127)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-06-17 13:08:25 +03:00 committed by GitHub
parent 2b46a4a0e9
commit 0afb3abfd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 346 additions and 242 deletions

View file

@ -1021,6 +1021,22 @@ impl Debug for DisplayPoint {
}
}
impl Add for DisplayPoint {
type Output = Self;
fn add(self, other: Self) -> Self::Output {
DisplayPoint(BlockPoint(self.0 .0 + other.0 .0))
}
}
impl Sub for DisplayPoint {
type Output = Self;
fn sub(self, other: Self) -> Self::Output {
DisplayPoint(BlockPoint(self.0 .0 - other.0 .0))
}
}
#[derive(Debug, Copy, Clone, Default, Eq, Ord, PartialOrd, PartialEq, Deserialize, Hash)]
#[serde(transparent)]
pub struct DisplayRow(pub u32);