mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Add rect field to InteractInfo struct
This commit is contained in:
@@ -128,6 +128,10 @@ impl Rect {
|
||||
pub fn max(&self) -> Vec2 {
|
||||
self.pos + self.size
|
||||
}
|
||||
|
||||
pub fn size(&self) -> Vec2 {
|
||||
self.size
|
||||
}
|
||||
}
|
||||
|
||||
pub fn lerp(min: f32, max: f32, t: f32) -> f32 {
|
||||
|
||||
Reference in New Issue
Block a user