GDIとGDI+でRECT構造体のメンバが意味だけ違う件
微妙に統一されてなくて泣いた。
Forms/SlimDXの場合(System.Drawing.Rectangle)
public Rectangle (int x, int y, int width, int height)
public Rect(double x, double y, double width, double height)
SharpDXの場合(SharpDX.Rectangle)
public Rectangle(int left, int top, int right, int bottom)
GDI+の場合
Rect( [in] INT x, [in] INT y, [in] INT width, [in] INT height );
WinAPI(GDI/DirectX)の場合
typedef struct tagRECT { LONG left; LONG top; LONG right; LONG bottom; } RECT;
System.Drawingを流用したSlimDXを除いて、一応親のパラメータを引き継いではいるものの・・・GDI+は何を血迷ったんだ。
Point+Sizeなら迷わなくていいのにー。*1
*1:Size(0,0)以外を原点に使われたら寝る