Mercurial > tablet-emu
comparison src/state.rs @ 15:d103f7cca0bd
Update to GTKĀ 4.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Thu, 26 Aug 2021 19:34:40 +0200 |
| parents | adab13145994 |
| children | 478cf2a7d577 |
comparison
equal
deleted
inserted
replaced
| 14:adab13145994 | 15:d103f7cca0bd |
|---|---|
| 44 selected_tool: Key::ButtonToolPen, | 44 selected_tool: Key::ButtonToolPen, |
| 45 pressed: false, | 45 pressed: false, |
| 46 }) | 46 }) |
| 47 } | 47 } |
| 48 | 48 |
| 49 pub fn set_size(&mut self, (width, height): (u32, u32)) { | 49 pub fn set_size(&mut self, width: i32, height: i32) { |
| 50 self.width = width as f64; | 50 self.width = width as f64; |
| 51 self.height = height as f64; | 51 self.height = height as f64; |
| 52 } | 52 } |
| 53 | 53 |
| 54 pub fn select_tool(&mut self, tool: Key) { | 54 pub fn select_tool(&mut self, tool: Key) { |
