class type t =Inheritsobject
..end
method equals_point : 'a. 'a Js.t -> bool Js.t Js.meth
Compare this point and another point
Parameters:
_ Js.t
The point to compare with, either an instance of Ext.util.Point or an object with left and top properties
Returns:
bool Js.t
Returns whether they are equivalent
method isContainedBy : 'b. 'b Js.t -> bool Js.t Js.meth
Determins whether this Point contained by the passed Region, Component or element.
Parameters:
_ Js.t
The rectangle to check that this Point is within.
method isWithin : 'c 'd. 'c Js.t -> 'd Js.t -> bool Js.t Js.meth
Whether the given point is not away from this point within the given threshold amount.
Parameters:
_ Js.t
The point to check with, either an instance of Ext.util.Point or an object with left and top properties
_ Js.t
Can be either an object with x and y properties or a number
method roundedEquals : 'e. 'e Js.t -> bool Js.t Js.meth
Compare this point with another point when the x and y values of both points are rounded. E.g: [100.3,199.8] will equals to [100, 200]
Parameters:
_ Js.t
The point to compare with, either an instance of Ext.util.Point or an object with x and y properties
method toString : Js.js_string Js.t Js.meth
Returns a human-eye-friendly string that represents this point, useful for debugging
method translate : 'f. 'f Js.t -> Js.number Js.t -> Ext_util_Region.t Js.t Js.meth
Alias for translateBy
Translate this region by the given offset amount
Parameters:
_ Js.t
Object containing the x
and y
properties.
Or the x value is using the two argument form.
Js.number Js.t
The y value unless using an Offset object.
Returns:
Ext_util_Region.t Js.t
this This Region