Improve outline panel entries' revealing and grouping (#13127)
Release Notes: - N/A
This commit is contained in:
parent
2b46a4a0e9
commit
0afb3abfd2
4 changed files with 346 additions and 242 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue