Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);