namespace sys.core
class SizeRect
this{x: T, y: T, x2: T, y2: T};
x=>
y=>
x2=>
y2=>
this FromSize{x: T, y: T, w: T, h: T};
x=>
y=>
w=>
h=>
def Offset(horizontal: T, vertical: T): SizeRect;
horizontal=>
vertical=>
func Offseted(horizontal: T, vertical: T): SizeRect;
horizontal=>
vertical=>
def Inflate(horizontal: T, vertical: T): SizeRect;
horizontal=>
vertical=>
func Inflated(horizontal: T, vertical: T): SizeRect;
horizontal=>
vertical=>
def Normalize();
func Normalized(): SizeRect;
def Contains(x: T, y: T): Bool;
def Contains(r: SizeRect): Bool;
x=>
y=>
r=>
property X2: T
property Y2: T
property IsEmpty: Bool; get;
val X: T;
val Y: T;
val Width: T;
val Height: T;