Example #1
0
        public UGColor(byte a, UGColor color)
        {
            ColorAsInt = 0;
            B          = 0;
            G          = 0;
            R          = 0;

            Color = color.Color;
            A     = a;
        }
Example #2
0
 public static void DrawPath(this IUGContext context, IUGPath path, Vector2 offset, UGColor color)
 => context.DrawPath(path, offset.X, offset.Y, color, 1F);
Example #3
0
 public static void FillRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radiusX, float radiusY, UGColor color)
 => context.FillRoundedRectangle(point.X, point.Y, size.Width, size.Height, radiusX, radiusY, color);
Example #4
0
 public static void FillRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radiusX, float radiusY, UGColor color)
 => context.FillRoundedRectangle(x, y, size.Width, size.Height, radiusX, radiusY, color);
Example #5
0
 public static void FillRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color)
 => context.FillRectangle(point.X, point.Y, size.Width, size.Height, color);
Example #6
0
 public static void FillRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color)
 => context.FillRectangle(x, y, size.Width, size.Height, color);
Example #7
0
 public static void FillCircleInRectangle(this IUGContext context, Vector2 point, float length, UGColor color)
 => context.FillCircleInRectangle(point.X, point.Y, length, color);
Example #8
0
 public static void DrawTextLayout(this IUGContext context, IUGTextLayout textLayout, Vector2 point, UGColor color)
 => context.DrawTextLayout(textLayout, point.X, point.Y, color);
Example #9
0
 public static void DrawRectangle(this IUGContext context, UGRect rect, UGColor color, float strokeWidth)
 => context.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height, color, strokeWidth);
Example #10
0
 public static void DrawRectangle(this IUGContext context, UGRect rect, UGColor color)
 => context.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height, color, 1F);
Example #11
0
 public static void DrawRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color, float strokeWidth)
 => context.DrawRectangle(point.X, point.Y, size.Width, size.Height, color, strokeWidth);
Example #12
0
 public static void DrawRectangle(this IUGContext context, Vector2 point, float width, float height, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawRectangle(point.X, point.Y, width, height, color, strokeWidth, strokeStyle);
Example #13
0
 public static void DrawRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color, float strokeWidth)
 => context.DrawRectangle(x, y, size.Width, size.Height, color, strokeWidth);
Example #14
0
 public static void DrawRectangle(this IUGContext context, float x, float y, float width, float height, UGColor color)
 => context.DrawRectangle(x, y, width, height, color, 1F);
Example #15
0
 public static void DrawPath(this IUGContext context, IUGPath path, Vector2 offset, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawPath(path, offset.X, offset.Y, color, strokeWidth, strokeStyle);
Example #16
0
 public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawRoundedRectangle(point.X, point.Y, size.Width, size.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
Example #17
0
 public static void DrawRoundedRectangle(this IUGContext context, UGRect rect, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
Example #18
0
 public static void DrawRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radius, UGColor color)
 => context.DrawRoundedRectangle(x, y, size.Width, size.Height, radius, radius, color, 1F);
Example #19
0
 public static void FillCircle(this IUGContext context, Vector2 centerPoint, float radius, UGColor color)
 => context.FillCircle(centerPoint.X, centerPoint.Y, radius, color);
Example #20
0
 public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radius, UGColor color)
 => context.DrawRoundedRectangle(point.X, point.Y, width, height, radius, radius, color, 1F);
Example #21
0
 public static void FillEllipse(this IUGContext context, Vector2 centerPoint, float radiusX, float radiusY, UGColor color)
 => context.FillEllipse(centerPoint.X, centerPoint.Y, radiusX, radiusY, color);
Example #22
0
 public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radius, UGColor color)
 => context.DrawRoundedRectangle(point.X, point.Y, size.Width, size.Height, radius, radius, color, 1F);
Example #23
0
 public static void FillRectangle(this IUGContext context, Vector2 point, float width, float height, UGColor color)
 => context.FillRectangle(point.X, point.Y, width, height, color);
Example #24
0
 public static void DrawRoundedRectangle(this IUGContext context, UGRect rect, float radius, UGColor color)
 => context.DrawRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radius, radius, color, 1F);
Example #25
0
 public static void FillRectangle(this IUGContext context, UGRect rect, UGColor color)
 => context.FillRectangle(rect.X, rect.Y, rect.Width, rect.Height, color);
Example #26
0
 public static void DrawRoundedRectangle(this IUGContext context, float x, float y, float width, float height, float radiusX, float radiusY, UGColor color)
 => context.DrawRoundedRectangle(x, y, width, height, radiusX, radiusY, color, 1F);
Example #27
0
 public static void FillRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radiusX, float radiusY, UGColor color)
 => context.FillRoundedRectangle(point.X, point.Y, width, height, radiusX, radiusY, color);
Example #28
0
 public static void DrawRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radiusX, float radiusY, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawRoundedRectangle(x, y, size.Width, size.Height, radiusX, radiusY, color, strokeWidth, strokeStyle);
Example #29
0
 public static void FillRoundedRectangle(this IUGContext context, UGRect rect, float radiusX, float radiusY, UGColor color)
 => context.FillRoundedRectangle(rect.X, rect.Y, rect.Width, rect.Height, radiusX, radiusY, color);
Example #30
0
 public static void DrawRoundedRectangle(this IUGContext context, Vector2 point, float width, float height, float radiusX, float radiusY, UGColor color, float strokeWidth)
 => context.DrawRoundedRectangle(point.X, point.Y, width, height, radiusX, radiusY, color, strokeWidth);