added options

This commit is contained in:
wolfyzhuang 2024-03-23 18:36:29 +00:00
parent 217896bd23
commit 9d6d66a565
2 changed files with 8 additions and 1 deletions

View File

@ -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()
}
}

View File

@ -0,0 +1 @@
use makepad_widgets::Cx;