Remove nalgebra dependency
- Implement our own `Point` and `Vector` types - Make `Rectangle` not generic
This commit is contained in:
parent
343cafa1ee
commit
eecac7b5d1
18 changed files with 69 additions and 31 deletions
|
|
@ -263,7 +263,7 @@ pub trait Renderer {
|
|||
fn draw(
|
||||
&mut self,
|
||||
cursor_position: Point,
|
||||
bounds: Rectangle<f32>,
|
||||
bounds: Rectangle,
|
||||
state: &State,
|
||||
label: &str,
|
||||
class: Class,
|
||||
|
|
|
|||
|
|
@ -182,8 +182,8 @@ pub trait Renderer {
|
|||
fn draw(
|
||||
&mut self,
|
||||
cursor_position: Point,
|
||||
bounds: Rectangle<f32>,
|
||||
label_bounds: Rectangle<f32>,
|
||||
bounds: Rectangle,
|
||||
label_bounds: Rectangle,
|
||||
is_checked: bool,
|
||||
) -> MouseCursor;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,5 +90,5 @@ where
|
|||
}
|
||||
|
||||
pub trait Renderer {
|
||||
fn draw(&mut self, bounds: Rectangle<f32>);
|
||||
fn draw(&mut self, bounds: Rectangle);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,8 @@ pub trait Renderer {
|
|||
fn draw(
|
||||
&mut self,
|
||||
cursor_position: Point,
|
||||
bounds: Rectangle<f32>,
|
||||
label_bounds: Rectangle<f32>,
|
||||
bounds: Rectangle,
|
||||
label_bounds: Rectangle,
|
||||
is_selected: bool,
|
||||
) -> MouseCursor;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ pub trait Renderer {
|
|||
fn draw(
|
||||
&mut self,
|
||||
cursor_position: Point,
|
||||
bounds: Rectangle<f32>,
|
||||
bounds: Rectangle,
|
||||
state: &State,
|
||||
range: RangeInclusive<f32>,
|
||||
value: f32,
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ pub trait Renderer<Color> {
|
|||
/// [`VerticalAlignment`]: enum.VerticalAlignment.html
|
||||
fn draw(
|
||||
&mut self,
|
||||
bounds: Rectangle<f32>,
|
||||
bounds: Rectangle,
|
||||
content: &str,
|
||||
size: f32,
|
||||
color: Option<Color>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue