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; }
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; }
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);
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);
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);
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);
public static void FillRectangle(this IUGContext context, Vector2 point, UGSize size, IUGBrush brush) => context.FillRectangle(point.X, point.Y, size.Width, size.Height, brush);
public static void FillRectangle(this IUGContext context, Vector2 point, UGSize size, UGColor color) => context.FillRectangle(point.X, point.Y, size.Width, size.Height, color);
public static void FillRectangle(this IUGContext context, float x, float y, UGSize size, IUGBrush brush) => context.FillRectangle(x, y, size.Width, size.Height, brush);
public static void FillEllipseInRectangle(this IUGContext context, float x, float y, UGSize size, UGColor color) => context.FillEllipseInRectangle(x, y, size.Width, size.Height, color);
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);
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);
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);
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);
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);
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);