Exemplo n.º 1
0
        protected internal TestWidget(IWidget parent) : base(parent, 0, 0, 150, 150)
        {
            //Text.Label(this, "Hello", 50, 10, 20, Width, 50, Align.Center, Palette.DarkSlateGray);

            //mPath = new VGPath(null, new VGSolidColor(Palette.Orange));
            mPath = new VGPath(null, new VGSolidColor(new Color(0xFFA5003F)));
            mPath.Move(30, 30);
            VGU.vguRoundRect(mPath.GetPath(), 0, 0, 100, 100, 35, 35);
        }
Exemplo n.º 2
0
        private VGPath GetPanelPath()
        {
            var fill = new VGLinearGradient(0, 0, mPanel.Width, 0);

            fill.AddColor(0, Palette.LightBlue);
            fill.AddColor(25, Palette.Gainsboro);
            fill.AddColor(75, Palette.Gainsboro);
            fill.AddColor(100, Palette.LightBlue);

            var rv = new VGPath(new VGSolidColor(Palette.White), fill);

            VGU.vguRect(rv.GetPath(), 0, 0, mPanel.Width, mPanel.Height);

            return(rv);
        }