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

            Color = color.Color;
            A     = a;
        }
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo n.º 7
0
 public static void FillCircleInRectangle(this IUGContext context, Vector2 point, float length, UGColor color)
 => context.FillCircleInRectangle(point.X, point.Y, length, color);
Ejemplo n.º 8
0
 public static void DrawTextLayout(this IUGContext context, IUGTextLayout textLayout, Vector2 point, UGColor color)
 => context.DrawTextLayout(textLayout, point.X, point.Y, color);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo n.º 19
0
 public static void FillCircle(this IUGContext context, Vector2 centerPoint, float radius, UGColor color)
 => context.FillCircle(centerPoint.X, centerPoint.Y, radius, color);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);
Ejemplo 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);