Class type Rectangle-PIXI._t

method bottom: float

returns the bottom edge of the rectangle

method height#=: Js.Internal.meth([ `Arity_1(float) ], unit)

rectangle hight

method height: float

rectangle hight

method left: float

returns the left edge of the rectangle

method right: float

returns the right edge of the rectangle

method top: float

returns the top edge of the rectangle

method width#=: Js.Internal.meth([ `Arity_1(float) ], unit)

rectangle width

method width: float

rectangle width

method x#=: Js.Internal.meth([ `Arity_1(float) ], unit)

The X coordinate of the upper-left corner of the rectangle

method x: float

The X coordinate of the upper-left corner of the rectangle

method y#=: Js.Internal.meth([ `Arity_1(float) ], unit)

The Y coordinate of the upper-left corner of the rectangle

method y: float

The Y coordinate of the upper-left corner of the rectangle

method ceil: Js.Internal.meth([ `Arity_2((Js.Undefined.t(float), Js.Undefined.t(float))) ], Js.t(_t))

Enlarges rectangle that way its corners lie on grid

deprecated

consider using Rectangle.ceil instead

see /bs-pixi/PIXI/Rectangle-PIXI/#val-ceil

Rectangle.ceil

parameter (optional)

resolution resolution

parameter (optional)

eps eps

returns

itself

method clone: Js.Internal.meth([ `Arity_0 ], Js.t(_t))

Creates a clone of this Rectangle

returns

a copy of the rectangle

method contains: Js.Internal.meth([ `Arity_2((float, float)) ], bool)

Checks whether the x and y coordinates given are contained within this Rectangle

parameter x

The X coordinate of the point to test

parameter y

The Y coordinate of the point to test

returns

Whether the x/y coordinates are within this Rectangle

method copyFrom: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Copies another rectangle to this one.

parameter rectangle

The rectangle to copy from.

returns

itself

method copyTo: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Copies this rectangle to another one.

parameter The

rectangle to copy to

returns

returns updated rectangle that was passed as parameter

method enlarge: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Enlarges this rectangle to include the passed rectangle

parameter rectangle

The rectangle to include

returns

itself

method fit: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Fits this rectangle around the passed one

parameter rectangle

The rectangle to fit

returns

itself

method pad: Js.Internal.meth([ `Arity_2((Js.Undefined.t(float), Js.Undefined.t(float))) ], Js.t(_t))

Pads the rectangle making it grow in all directions. If paddingY is omitted, both paddingX and paddingY will be set to paddingX.

deprecated

Consider using Rectangle.pad instead

see /bs-pixi/PIXI/Rectangle-PIXI/#val-pad

Rectangle.pad

parameter paddingX

The horizontal padding amount

parameter paddingY

The vertical padding amount

returns

itself