Esempio n. 1
0
        public UGColor(byte a, UGColor color)
        {
            ColorAsInt = 0;
            B          = 0;
            G          = 0;
            R          = 0;

            Color = color.Color;
            A     = a;
        }
Esempio n. 2
0
 public static void DrawPath(this IUGContext context, IUGPath path, Vector2 offset, UGColor color)
 => context.DrawPath(path, offset.X, offset.Y, color, 1F);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 7
0
 public static void FillCircleInRectangle(this IUGContext context, Vector2 point, float length, UGColor color)
 => context.FillCircleInRectangle(point.X, point.Y, length, color);
Esempio n. 8
0
 public static void DrawTextLayout(this IUGContext context, IUGTextLayout textLayout, Vector2 point, UGColor color)
 => context.DrawTextLayout(textLayout, point.X, point.Y, color);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 19
0
 public static void FillCircle(this IUGContext context, Vector2 centerPoint, float radius, UGColor color)
 => context.FillCircle(centerPoint.X, centerPoint.Y, radius, color);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 25
0
 public static void FillRectangle(this IUGContext context, UGRect rect, UGColor color)
 => context.FillRectangle(rect.X, rect.Y, rect.Width, rect.Height, color);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);
Esempio n. 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);