1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Draw separator between window title and its contents

This commit is contained in:
Emil Ernerfeldt
2020-04-19 23:51:38 +02:00
parent 388132ba93
commit 7f85b2623b
3 changed files with 41 additions and 13 deletions

View File

@@ -169,6 +169,18 @@ impl Pos2 {
y: self.y,
}
}
pub fn floor(self) -> Self {
pos2(self.x.floor(), self.y.floor())
}
pub fn round(self) -> Self {
pos2(self.x.round(), self.y.round())
}
pub fn ceil(self) -> Self {
pos2(self.x.ceil(), self.y.ceil())
}
}
impl std::ops::AddAssign<Vec2> for Pos2 {