Package: | Ext.util |
Defined In: | Region.js |
Class: | Region |
Extends: | Object |
Method | Defined By | |
---|---|---|
Region.from( Object o )
:
void<static> <static> Parameters:
| Region | |
Region.getRegion( Mixed el )
:
void<static> <static> Parameters:
| Region | |
adjust( Number top , Number right , Number bottom , Number left )
:
voidModifies the current region to be adjusted by offsets. Modifies the current region to be adjusted by offsets. Parameters:
| Region | |
constrainTo( Ext.util.Region targetRegion )
:
voidModifies the current region to be constrained to the targetRegion. Modifies the current region to be constrained to the targetRegion. Parameters:
| Region | |
constructor( Number top , Number right , Number bottom , Number left )
:
voidParameters:
| Region | |
contains( Ext.util.Region region )
:
voidChecks if this region completely contains the region that is passed in. Checks if this region completely contains the region that is passed in. Parameters:
| Region | |
copy()
:
Ext.util.Region Copy a new instance Copy a new instance Parameters:
| Region | |
equals( Ext.util.Region region )
:
BooleanCheck whether this region is equivalent to the given region Check whether this region is equivalent to the given region Parameters:
| Region | |
getOutOfBoundOffset( String axis , Ext.util.Point p )
:
Ext.util.OffsetGet the offset amount of a point outside the region Get the offset amount of a point outside the region Parameters:
| Region | |
getOutOfBoundOffsetX( Number p )
:
NumberGet the offset amount on the x-axis Get the offset amount on the x-axis Parameters:
| Region | |
getOutOfBoundOffsetY( Number p )
:
NumberGet the offset amount on the y-axis Get the offset amount on the y-axis Parameters:
| Region | |
intersect( Ext.util.Region region )
:
Ext.util.Region/BooleanChecks if this region intersects the region passed in. Checks if this region intersects the region passed in. Parameters:
| Region | |
isOutOfBound( String axis , Ext.util.Point/Number p )
:
BooleanCheck whether the point / offset is out of bound Check whether the point / offset is out of bound Parameters:
| Region | |
isOutOfBoundX( Number p )
:
BooleanCheck whether the offset is out of bound in the x-axis Check whether the offset is out of bound in the x-axis Parameters:
| Region | |
isOutOfBoundY( Number p )
:
BooleanCheck whether the offset is out of bound in the y-axis Check whether the offset is out of bound in the y-axis Parameters:
| Region | |
round()
:
Ext.util.Region Round all the properties of this region Round all the properties of this region Parameters:
| Region | |
toString()
:
String Dump this to an eye-friendly string, great for debugging Dump this to an eye-friendly string, great for debugging Parameters:
| Region | |
translateBy( Ext.util.Offset/Object offset )
:
Ext.util.RegionTranslate this region by the given offset amount Translate this region by the given offset amount Parameters:
| Region | |
union( Ext.util.Region region )
:
voidReturns the smallest region that contains the current AND targetRegion. Returns the smallest region that contains the current AND targetRegion. Parameters:
| Region |