Пример #1
0
 public UGRect(Vector2 point, UGSize size)
 {
     _data   = new Vector4();
     _data.W = point.X;
     _data.X = point.Y;
     _data.Y = size.Width;
     _data.Z = size.Height;
 }
Пример #2
0
 public UGRect(float x, float y, UGSize size)
 {
     _data   = new Vector4();
     _data.W = x;
     _data.X = y;
     _data.Y = size.Width;
     _data.Z = size.Height;
 }
Пример #3
0
 public static void FillRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radiusX, float radiusY, IUGBrush brush)
 => context.FillRoundedRectangle(point.X, point.Y, size.Width, size.Height, radiusX, radiusY, brush);
Пример #4
0
 public static void FillRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radiusX, float radiusY, IUGBrush brush)
 => context.FillRoundedRectangle(x, y, size.Width, size.Height, radiusX, radiusY, brush);
Пример #5
0
 public static void FillRoundedRectangle(this IUGContext context, Vector2 point, UGSize size, float radius, UGColor color)
 => context.FillRoundedRectangle(point.X, point.Y, size.Width, size.Height, radius, radius, color);
Пример #6
0
 public static void FillRoundedRectangle(this IUGContext context, float x, float y, UGSize size, float radius, UGColor color)
 => context.FillRoundedRectangle(x, y, size.Width, size.Height, radius, radius, color);
Пример #7
0
 public static void FillRectangle(this IUGContext context, Vector2 point, UGSize size, IUGBrush brush)
 => context.FillRectangle(point.X, point.Y, size.Width, size.Height, brush);
Пример #8
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);
Пример #9
0
 public static void FillRectangle(this IUGContext context, float x, float y, UGSize size, IUGBrush brush)
 => context.FillRectangle(x, y, size.Width, size.Height, brush);
Пример #10
0
 public static void FillEllipseInRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color)
 => context.FillEllipseInRectangle(x, y, size.Width, size.Height, color);
Пример #11
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);
Пример #12
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);
Пример #13
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);
Пример #14
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);
Пример #15
0
 public static void DrawEllipseInRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color)
 => context.DrawEllipseInRectangle(point.X, point.Y, size.Width, size.Height, color, 1F);
Пример #16
0
 public static void DrawEllipseInRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color, float strokeWidth, UGStrokeStyle strokeStyle)
 => context.DrawEllipseInRectangle(x, y, size.Width, size.Height, color, strokeWidth, strokeStyle);