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

Add rect field to InteractInfo struct

This commit is contained in:
Emil Ernerfeldt
2019-01-14 14:26:02 +01:00
parent 6e8cc8439b
commit 3f84836c20
7 changed files with 73 additions and 89 deletions

View File

@@ -82,8 +82,7 @@ impl App {
gui.add_graphic(GuiCmd::PaintCommands(vec![PaintCmd::Rect {
corner_radius: self.corner_radius,
fill_color: Some(srgba(136, 136, 136, 255)),
pos,
size: self.size,
rect: Rect::from_min_size(pos, self.size),
outline: Some(Outline {
width: self.stroke_width,
color: srgba(255, 255, 255, 255),