Skip to content

Commit

Permalink
added options
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfyzhuang committed Mar 23, 2024
1 parent 217896b commit 9d6d66a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion moxin-frontend/src/shared/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ pub struct Icon {
impl Widget for Icon {
fn handle_event(&mut self, _cx: &mut Cx, _event: &Event, _scope: &mut Scope) {}

fn draw_walk(&mut self, cx: &mut Cx2d, _scope: &mut Scope, walk: Walk) -> DrawStep
fn draw_walk(&mut self, cx: &mut Cx2d, _scope: &mut Scope, walk: Walk) -> DrawStep {
self.draw_bg.begin(cx, walk, self.layout);
self.draw_icon.draw_walk(cx, self.icon_walk);
self.draw_bg.end(cx);
DrawStep::done()
}
}
1 change: 1 addition & 0 deletions moxin-frontend/src/shared/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use makepad_widgets::Cx;

0 comments on commit 9d6d66a

Please sign in to comment.