Package | Description |
---|---|
com.tractionsoftware.gwt.user.client.util |
Modifier and Type | Method and Description |
---|---|
static Rect |
Geometry.getBounds(Element e) |
static Rect |
Geometry.getBoundsOfHidden(Element e) |
static Rect |
Geometry.getViewportBounds()
This takes into account scrolling and will be in absolute
coordinates where the top left corner of the page is 0,0 but
the viewport may be scrolled to something else.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Geometry.isInside(int x,
int y,
Rect box)
Determines if a point is inside a box.
|
void |
Rect.moveInside(Rect bounds)
Note, this actually changes this Rect (if that wasn't obvious)
|
static void |
Geometry.setBounds(UIObject o,
Rect bounds)
Sets the bounds of a UIObject, moving and sizing to match the
bounds specified.
|
static void |
Geometry.setPosition(UIObject o,
Rect pos)
Sets the position of a UIObject
|
static void |
Geometry.setSize(UIObject o,
Rect size)
Sets the size of a UIObject
|
Constructor and Description |
---|
Rect(Rect copy) |
Copyright © 2015. All Rights Reserved.