made painter actually how I wanted it (draw now takes in an owned painter)
This commit is contained in:
1 parent
6fbdf9fbc8
commit
2ffb09bef0
10 files changed
+60
-50
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ pub struct Span {
|
||||
}
|
||||
|
||||
impl<Ctx: 'static> Widget<Ctx> for Span {
|
||||
fn draw(&self, painter: &mut Painter<Ctx>) {
|
||||
fn draw(&self, mut painter: Painter<Ctx>) {
|
||||
let total = self.sums();
|
||||
let mut start = UIScalar::min();
|
||||
for (child, length) in &self.children {
|
||||
|
||||
Reference in new issue
Block a user