Remove nalgebra dependency

- Implement our own `Point` and `Vector` types
  - Make `Rectangle` not generic
This commit is contained in:
Héctor Ramón Jiménez 2019-08-31 04:31:13 +02:00
parent 343cafa1ee
commit eecac7b5d1
18 changed files with 69 additions and 31 deletions

View file

@ -14,8 +14,8 @@ impl radio::Renderer for Renderer<'_> {
fn draw(
&mut self,
cursor_position: Point,
bounds: Rectangle<f32>,
bounds_with_label: Rectangle<f32>,
bounds: Rectangle,
bounds_with_label: Rectangle,
is_selected: bool,
) -> MouseCursor {
let mouse_over = bounds_with_label.contains(cursor_position);