public static bool EnclosePoints(SDL2Point[] points, int index, int count, SDL2Rect clip, out SDL2Rect result) { int max = (index + count) > points.Length ? points.Length - index : count; return(EnclosePoints(ref points[index], max, ref clip, out result)); }
public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result) { return EnclosePoints(ref points[0], points.Length, ref clip, out result); }
private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
public static extern void SetTextInputRect(ref SDL2Rect rect);
public static bool RectEmpty(SDL2Rect r) { return (r.w <= 0 || r.h <= 0) ? true : false; }
public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result) { return(EnclosePoints(ref points[0], points.Length, ref clip, out result)); }
public static bool EnclosePoints(SDL2Point[] points, int index, int count, SDL2Rect clip, out SDL2Rect result) { int max = (index + count) > points.Length ? points.Length - index : count; return EnclosePoints(ref points[index], max, ref clip, out result); }
public static bool RectEmpty(SDL2Rect r) { return((r.w <= 0 || r.h <= 0) ? true : false); }
public static bool RectEquals(SDL2Rect a, SDL2Rect b) { return(a == b); }
public static bool RectEquals(SDL2Rect a, SDL2Rect b) { return a == b; }
public static extern string GetDisplayBounds(int DisplayIndex, out SDL2Rect rect);