Пример #1
0
        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;
        }
Пример #2
0
        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();
        }
Пример #3
0
 internal override void Draw(PicoGfx gfx, PicoGuiTheme theme)
 {
     theme.DrawSlider(gfx, this);
 }
Пример #4
0
        internal override void Draw(PicoGfx gfx, PicoGuiTheme theme)
        {
            theme.DrawPanel(gfx, this);

            base.Draw(gfx, theme);
        }
Пример #5
0
 internal override void Draw(PicoGfx gfx, PicoGuiTheme theme)
 {
     theme.DrawCheckBox(gfx, this);
 }
Пример #6
0
 internal abstract void Draw(PicoGfx gfx, PicoGuiTheme theme);