public void GetBounds([NativeTypeName("Gdiplus::Rect *")] GpRect *rect) { rect->X = X; rect->Y = Y; rect->Width = Width; rect->Height = Height; }
public static BOOL Union([NativeTypeName("Gdiplus::Rect &")] GpRect *c, [NativeTypeName("const Gdiplus::Rect &")] GpRect *a, [NativeTypeName("const Gdiplus::Rect &")] GpRect *b) { int right = (((a->GetRight()) > (b->GetRight())) ? (a->GetRight()) : (b->GetRight())); int bottom = (((a->GetBottom()) > (b->GetBottom())) ? (a->GetBottom()) : (b->GetBottom())); int left = (((a->GetLeft()) < (b->GetLeft())) ? (a->GetLeft()) : (b->GetLeft())); int top = (((a->GetTop()) < (b->GetTop())) ? (a->GetTop()) : (b->GetTop())); c->X = left; c->Y = top; c->Width = right - left; c->Height = bottom - top; return((c->IsEmptyArea() == 0) ? 1 : 0); }
public BOOL Equals([NativeTypeName("const Gdiplus::Rect &")] GpRect *rect) { return((X == rect->X && Y == rect->Y && Width == rect->Width && Height == rect->Height) ? 1 : 0); }
public BOOL IntersectsWith([NativeTypeName("const Gdiplus::Rect &")] GpRect *rect) { return((GetLeft() < rect->GetRight() && GetTop() < rect->GetBottom() && GetRight() > rect->GetLeft() && GetBottom() > rect->GetTop()) ? 1 : 0); }
public BOOL Contains([NativeTypeName("Gdiplus::Rect &")] GpRect *rect) { return(((X <= rect->X) && (rect->GetRight() <= GetRight()) && (Y <= rect->Y) && (rect->GetBottom() <= GetBottom())) ? 1 : 0); }