internal override void Draw(Canvas canvas, GuiTheme theme) { var x = this.GlobalX; var y = this.GlobalY; var w = this.W; var h = this.H; canvas.BeginClip(x, y, w, h); canvas.DrawRect(x, y, w, h, Color.Fuchsia); foreach (var widget in children) { widget.Draw(canvas, theme); } canvas.EndClip(); }
internal override void Draw(Canvas canvas, GuiTheme theme) { theme.DrawButton(canvas, this); }
internal override void Draw(Canvas canvas, GuiTheme theme) { theme.DrawPanel(canvas, this); base.Draw(canvas, theme); }