1 Ext.data.JsonP.Ext_util_Point({
3 "name": "Ext.util.Point",
4 "doc": "<p>Represents a 2D point with x and y properties, useful for comparison and instantiation\nfrom an event:</p>\n\n<pre><code>var point = Ext.util.Point.fromEvent(e);\n</code></pre>\n\n",
5 "extends": "Ext.util.Region",
9 "alternateClassNames": [
24 "member": "Ext.util.Region",
30 "doc": "<p>Top</p>\n",
36 "doc": "<p>Right</p>\n",
42 "doc": "<p>Bottom</p>\n",
48 "doc": "<p>Left</p>\n",
58 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
60 "html_filename": "Region.html",
61 "href": "Region.html#Ext-util-Region-method-constructor",
67 "member": "Ext.util.Region",
68 "doc": "<p>Modifies the current region to be adjusted by offsets.</p>\n",
73 "doc": "<p>top offset</p>\n",
79 "doc": "<p>right offset</p>\n",
85 "doc": "<p>bottom offset</p>\n",
91 "doc": "<p>left offset</p>\n",
101 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
103 "html_filename": "Region.html",
104 "href": "Region.html#Ext-util-Region-method-adjust",
105 "shortDoc": "<p>Modifies the current region to be adjusted by offsets.</p>\n"
109 "name": "constrainTo",
110 "member": "Ext.util.Region",
111 "doc": "<p>Modifies the current region to be constrained to the targetRegion.</p>\n",
114 "type": "Ext.util.Region",
115 "name": "targetRegion",
126 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
128 "html_filename": "Region.html",
129 "href": "Region.html#Ext-util-Region-method-constrainTo",
130 "shortDoc": "<p>Modifies the current region to be constrained to the targetRegion.</p>\n"
135 "member": "Ext.util.Region",
136 "doc": "<p>Checks if this region completely contains the region that is passed in.</p>\n",
139 "type": "Ext.util.Region",
151 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
153 "html_filename": "Region.html",
154 "href": "Region.html#Ext-util-Region-method-contains",
155 "shortDoc": "<p>Checks if this region completely contains the region that is passed in.</p>\n"
160 "member": "Ext.util.Region",
161 "doc": "<p>Copy a new instance</p>\n",
166 "type": "Ext.util.Region",
171 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
173 "html_filename": "Region.html",
174 "href": "Region.html#Ext-util-Region-method-copy",
175 "shortDoc": "<p>Copy a new instance</p>\n"
180 "member": "Ext.util.Region",
181 "doc": "<p>Copy the values of another Region to this Region</p>\n",
186 "doc": "<p>region to copy from.</p>\n",
191 "type": "Ext.util.Point",
192 "doc": "<p>this This point</p>\n"
196 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
198 "html_filename": "Region.html",
199 "href": "Region.html#Ext-util-Region-method-copyFrom",
200 "shortDoc": "<p>Copy the values of another Region to this Region</p>\n"
205 "member": "Ext.util.Point",
206 "doc": "<p>Compare this point and another point</p>\n",
209 "type": "Ext.util.Point/Object",
211 "doc": "<p>point to compare with, either an instance\nof <a href=\"#/api/Ext.util.Point\" rel=\"Ext.util.Point\" class=\"docClass\">Ext.util.Point</a> or an object with left and top properties</p>\n",
217 "doc": "<p>Returns whether they are equivalent</p>\n"
221 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
223 "html_filename": "Point.html",
224 "href": "Point.html#Ext-util-Point-method-equals",
225 "shortDoc": "<p>Compare this point and another point</p>\n"
230 "member": "Ext.util.Region",
236 "doc": "<p>An object with top, right, bottom, left properties</p>\n",
241 "type": "Ext.util.Region",
242 "doc": "<p>region The region constructed based on the passed object</p>\n"
246 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
248 "html_filename": "Region.html",
249 "href": "Region.html#Ext-util-Region-method-from",
255 "member": "Ext.util.Point",
256 "doc": "<p>Returns a new instance of <a href=\"#/api/Ext.util.Point\" rel=\"Ext.util.Point\" class=\"docClass\">Ext.util.Point</a> base on the pageX / pageY values of the given event</p>\n",
261 "doc": "<p>The event</p>\n",
267 "doc": "<p>Ext.util.Point</p>\n"
271 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
273 "html_filename": "Point.html",
274 "href": "Point.html#Ext-util-Point-method-fromEvent",
275 "shortDoc": "<p>Returns a new instance of <a href=\"#/api/Ext.util.Point\" rel=\"Ext.util.Point\" class=\"docClass\">Ext.util.Point</a> base on the pageX / pageY values of the given event</p>\n"
279 "name": "getOutOfBoundOffset",
280 "member": "Ext.util.Region",
281 "doc": "<p>Get the offset amount of a point outside the region</p>\n",
286 "doc": "<p>optional</p>\n",
290 "type": "Ext.util.Point",
292 "doc": "<p>the point</p>\n",
297 "type": "Ext.util.Offset",
302 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
304 "html_filename": "Region.html",
305 "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffset",
306 "shortDoc": "<p>Get the offset amount of a point outside the region</p>\n"
310 "name": "getOutOfBoundOffsetX",
311 "member": "Ext.util.Region",
312 "doc": "<p>Get the offset amount on the x-axis</p>\n",
317 "doc": "<p>the offset</p>\n",
327 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
329 "html_filename": "Region.html",
330 "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetX",
331 "shortDoc": "<p>Get the offset amount on the x-axis</p>\n"
335 "name": "getOutOfBoundOffsetY",
336 "member": "Ext.util.Region",
337 "doc": "<p>Get the offset amount on the y-axis</p>\n",
342 "doc": "<p>the offset</p>\n",
352 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
354 "html_filename": "Region.html",
355 "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetY",
356 "shortDoc": "<p>Get the offset amount on the y-axis</p>\n"
361 "member": "Ext.util.Region",
367 "doc": "<p>A string, DomElement or <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> representing an element\non the page.</p>\n",
372 "type": "Ext.util.Region",
373 "doc": "<p>region\nRetrieves an <a href=\"#/api/Ext.util.Region\" rel=\"Ext.util.Region\" class=\"docClass\">Ext.util.Region</a> for a particular element.</p>\n"
377 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
379 "html_filename": "Region.html",
380 "href": "Region.html#Ext-util-Region-method-getRegion",
386 "member": "Ext.util.Region",
387 "doc": "<p>Checks if this region intersects the region passed in.</p>\n",
390 "type": "Ext.util.Region",
397 "type": "Ext.util.Region/Boolean",
398 "doc": "<p>Returns the intersected region or false if there is no intersection.</p>\n"
402 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
404 "html_filename": "Region.html",
405 "href": "Region.html#Ext-util-Region-method-intersect",
406 "shortDoc": "<p>Checks if this region intersects the region passed in.</p>\n"
410 "name": "isOutOfBound",
411 "member": "Ext.util.Region",
412 "doc": "<p>Check whether the point / offset is out of bound</p>\n",
417 "doc": "<p>optional</p>\n",
421 "type": "Ext.util.Point/Number",
423 "doc": "<p>the point / offset</p>\n",
433 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
435 "html_filename": "Region.html",
436 "href": "Region.html#Ext-util-Region-method-isOutOfBound",
437 "shortDoc": "<p>Check whether the point / offset is out of bound</p>\n"
441 "name": "isOutOfBoundX",
442 "member": "Ext.util.Region",
443 "doc": "<p>Check whether the offset is out of bound in the x-axis</p>\n",
448 "doc": "<p>the offset</p>\n",
458 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
460 "html_filename": "Region.html",
461 "href": "Region.html#Ext-util-Region-method-isOutOfBoundX",
462 "shortDoc": "<p>Check whether the offset is out of bound in the x-axis</p>\n"
466 "name": "isOutOfBoundY",
467 "member": "Ext.util.Region",
468 "doc": "<p>Check whether the offset is out of bound in the y-axis</p>\n",
473 "doc": "<p>the offset</p>\n",
483 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
485 "html_filename": "Region.html",
486 "href": "Region.html#Ext-util-Region-method-isOutOfBoundY",
487 "shortDoc": "<p>Check whether the offset is out of bound in the y-axis</p>\n"
492 "member": "Ext.util.Point",
493 "doc": "<p>Whether the given point is not away from this point within the given threshold amount.\nTODO: Rename this isNear.</p>\n",
496 "type": "Ext.util.Point/Object",
498 "doc": "<p>point to check with, either an instance\nof <a href=\"#/api/Ext.util.Point\" rel=\"Ext.util.Point\" class=\"docClass\">Ext.util.Point</a> or an object with left and top properties</p>\n",
502 "type": "Object/Number",
504 "doc": "<p>Can be either an object with x and y properties or a number</p>\n",
514 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
516 "html_filename": "Point.html",
517 "href": "Point.html#Ext-util-Point-method-isWithin",
518 "shortDoc": "<p>Whether the given point is not away from this point within the given threshold amount.\nTODO: Rename this isNear.</p>\n"
523 "member": "Ext.util.Region",
524 "doc": "<p>Round all the properties of this region</p>\n",
529 "type": "Ext.util.Region",
530 "doc": "<p>this This Region</p>\n"
534 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
536 "html_filename": "Region.html",
537 "href": "Region.html#Ext-util-Region-method-round",
538 "shortDoc": "<p>Round all the properties of this region</p>\n"
542 "name": "roundedEquals",
543 "member": "Ext.util.Point",
544 "doc": "<p>Compare this point with another point when the x and y values of both points are rounded. E.g:\n[100.3,199.8] will equals to [100, 200]</p>\n",
547 "type": "Ext.util.Point/Object",
549 "doc": "<p>point to compare with, either an instance\nof <a href=\"#/api/Ext.util.Point\" rel=\"Ext.util.Point\" class=\"docClass\">Ext.util.Point</a> or an object with x and y properties</p>\n",
559 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
561 "html_filename": "Point.html",
562 "href": "Point.html#Ext-util-Point-method-roundedEquals",
563 "shortDoc": "Compare this point with another point when the x and y values of both points are rounded. E.g:\n[100.3,199.8] will equ..."
568 "member": "Ext.util.Point",
569 "doc": "<p>Returns a human-eye-friendly string that represents this point,\nuseful for debugging</p>\n",
579 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
581 "html_filename": "Point.html",
582 "href": "Point.html#Ext-util-Point-method-toString",
583 "shortDoc": "<p>Returns a human-eye-friendly string that represents this point,\nuseful for debugging</p>\n"
588 "member": "Ext.util.Point",
589 "doc": "<p>Translate this region by the given offset amount. TODO: Either use translate or translateBy!</p>\n",
592 "type": "Ext.util.Offset/Object",
594 "doc": "<p>Object containing the <code>x</code> and <code>y</code> properties.\nOr the x value is using the two argument form.</p>\n",
600 "doc": "<p>y value unless using an Offset object.</p>\n",
605 "type": "Ext.util.Region",
606 "doc": "<p>this This Region</p>\n"
610 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
612 "html_filename": "Point.html",
613 "href": "Point.html#Ext-util-Point-method-translate",
614 "shortDoc": "<p>Translate this region by the given offset amount. TODO: Either use translate or translateBy!</p>\n"
618 "name": "translateBy",
619 "member": "Ext.util.Region",
620 "doc": "<p>Translate this region by the given offset amount</p>\n",
623 "type": "Ext.util.Offset/Object",
625 "doc": "<p>Object containing the <code>x</code> and <code>y</code> properties.\nOr the x value is using the two argument form.</p>\n",
631 "doc": "<p>y value unless using an Offset object.</p>\n",
636 "type": "Ext.util.Region",
637 "doc": "<p>this This Region</p>\n"
641 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
643 "html_filename": "Region.html",
644 "href": "Region.html#Ext-util-Region-method-translateBy",
645 "shortDoc": "<p>Translate this region by the given offset amount</p>\n"
650 "member": "Ext.util.Region",
651 "doc": "<p>Returns the smallest region that contains the current AND targetRegion.</p>\n",
654 "type": "Ext.util.Region",
666 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Region.js",
668 "html_filename": "Region.html",
669 "href": "Region.html#Ext-util-Region-method-union",
670 "shortDoc": "<p>Returns the smallest region that contains the current AND targetRegion.</p>\n"
679 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/util/Point.js",
681 "html_filename": "Point.html",
682 "href": "Point.html#Ext-util-Point",