internal PicoGui(PicoGfx gfx, int width, int height) { _guiSurface = new PicoSurface(gfx, width, height, PicoSurface.AccessType.Target); _uiMouseState = new UIMouseState(); _theme = new DefaultTheme(); _root = new Container(this, width, height); PicoGui.Instance = this; }
internal override void Draw(PicoGfx gfx, PicoGuiTheme theme) { var x = (this.GlobalX); var y = (this.GlobalY); var w = (this.W); var h = (this.H); gfx.BeginClip(x, y, w, h); foreach (var widget in _children) { widget.Draw(gfx, theme); } gfx.EndClip(); }
internal override void Draw(PicoGfx gfx, PicoGuiTheme theme) { theme.DrawSlider(gfx, this); }
internal override void Draw(PicoGfx gfx, PicoGuiTheme theme) { theme.DrawPanel(gfx, this); base.Draw(gfx, theme); }
internal override void Draw(PicoGfx gfx, PicoGuiTheme theme) { theme.DrawCheckBox(gfx, this); }
internal abstract void Draw(PicoGfx gfx, PicoGuiTheme theme);