Beispiel #1
0
        private void DrawFrame(PicoGfx gfx, int x, int y, int w, int h, ref Color outerBorderColor, ref Color innerBorderColor, ref Color fillColor, bool drawShadow)
        {
            gfx.SetColor(ref outerBorderColor);
            gfx.DrawRect(x, y, w, h);

            gfx.SetColor(ref innerBorderColor);
            gfx.DrawRect(x + 1, y + 1, w - 2, h - 2);

            gfx.SetColor(ref fillColor);
            gfx.FillRect(x + 2, y + 2, w - 4, h - 4);
            if (drawShadow)
            {
                gfx.SetColor(ref outerBorderColor);
                gfx.DrawHLine(x, x + w - 1, y + h);
            }
        }