internal override void Draw(Canvas canvas, GuiStyle style) { var x = this.GlobalX; var y = this.GlobalY; var w = this.W; var h = this.H; DrawFrame(canvas, x, y, w, h, style); }
internal override void Draw(Canvas canvas, GuiStyle style) { var x = this.GlobalX; var y = this.GlobalY; var w = this.W; var h = this.H; canvas.BeginClip(x, y, w, h); if (DebugDraw) { canvas.DrawRect(x, y, w, h, Color.Fuchsia); } foreach (var widget in children) { widget.Draw(canvas, style); } canvas.EndClip(); }