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

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