class SizeRect

namespace sys.core
class SizeRect

Constructors

this

this{x: T, y: T, x2: T, y2: T};

Brief

Parameters

x=>
y=>
x2=>
y2=>

FromSize

this FromSize{x: T, y: T, w: T, h: T};

Brief

Parameters

x=>
y=>
w=>
h=>

Methods

Offset

def Offset(horizontal: T, vertical: T): SizeRect;

Brief

Parameters

horizontal=>
vertical=>

Returns


Offseted

func Offseted(horizontal: T, vertical: T): SizeRect;

Brief

Parameters

horizontal=>
vertical=>

Returns


Inflate

def Inflate(horizontal: T, vertical: T): SizeRect;

Brief

Parameters

horizontal=>
vertical=>

Returns


Inflated

func Inflated(horizontal: T, vertical: T): SizeRect;

Brief

Parameters

horizontal=>
vertical=>

Returns


Normalize

def Normalize();

Brief


Normalized

func Normalized(): SizeRect;

Brief

Returns


Contains

def Contains(x: T, y: T): Bool;
def Contains(r: SizeRect): Bool;

Brief

Parameters

x=>
y=>
r=>

Returns

Properties

X2

property X2: T

Brief


Y2

property Y2: T

Brief


IsEmpty

property IsEmpty: Bool; get;

Brief

Variables

X

val X: T;

Brief


Y

val Y: T;

Brief


Width

val Width: T;

Brief


Height

val Height: T;

Brief