remove context generic
This commit is contained in:
@@ -20,8 +20,8 @@ impl Text {
|
||||
}
|
||||
}
|
||||
|
||||
impl<Ctx> Widget<Ctx> for Text {
|
||||
fn draw(&self, painter: &mut Painter<Ctx>) {
|
||||
impl Widget for Text {
|
||||
fn draw(&self, painter: &mut Painter) {
|
||||
// TODO: when on_update is added to painter,
|
||||
// return & store TextureHandle to reuse
|
||||
painter.draw_text(&self.content, &self.attrs);
|
||||
|
||||
Reference in New Issue
Block a user