コード例 #1
0
        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));
        }
コード例 #2
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return EnclosePoints(ref points[0], points.Length, ref clip, out result);
 }
コード例 #3
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
コード例 #4
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
コード例 #5
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
コード例 #6
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
コード例 #7
0
 public static extern void SetTextInputRect(ref SDL2Rect rect);
コード例 #8
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return (r.w <= 0 || r.h <= 0) ? true : false;
 }
コード例 #9
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
コード例 #10
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return(EnclosePoints(ref points[0], points.Length, ref clip, out result));
 }
コード例 #11
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
コード例 #12
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
コード例 #13
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
コード例 #14
0
        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);
        }
コード例 #15
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return((r.w <= 0 || r.h <= 0) ? true : false);
 }
コード例 #16
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
コード例 #17
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return(a == b);
 }
コード例 #18
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return a == b;
 }
コード例 #19
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
コード例 #20
0
 public static extern string GetDisplayBounds(int DisplayIndex, out SDL2Rect rect);
コード例 #21
0
 public static extern void SetTextInputRect(ref SDL2Rect rect);