fn draw_selection(&self, ctx: &CanvasRenderingContext2d) {
        ctx.begin_path();
        ctx.set_stroke_style(&JsValue::from_str("#00ff00"));
        ctx.rect(
            self.x(),
            self.y() - self.h() * 0.05,
            self.w(),
            self.h() + self.h() * 0.1,
        );
        ctx.stroke();
        ctx.close_path();
    }
/// Draws the selection highlight for the Button
Draws the selection highlight for the Button
Draws the selection highlight for the Button
fn draw_selection(&self, ctx: &CanvasRenderingContext2d) {
        ctx.begin_path();
        ctx.set_stroke_style(&JsValue::from_str("#00ff00"));
        ctx.rect(
            self.x(),
            self.y() - self.h() * 0.05,
            self.w(),
            self.h() + self.h() * 0.1,
        );
        ctx.stroke();
        ctx.close_path();
    }
fn draw_selection ( & self , ctx : & CanvasRenderingContext2d ) { ctx . begin_path ( ) ; ctx . set_stroke_style ( & JsValue :: from_str ( " " ) ) ; ctx . rect ( self . x ( ) , self . y ( ) - self . h ( ) * 0.05 , self . w ( ) , self . h ( ) + self . h ( ) * 0.1 , ) ; ctx . stroke ( ) ; ctx . close_path ( ) ; }
Draws the selection highlight for the Button
Draws the selection highlight for the Button
&self
ctx
&CanvasRenderingContext2d
&self
ctx
&CanvasRenderingContext2d