|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Offset | |
---|---|
_global_ | The global namespace in JavaScript (i.e., the window object). |
zk | ZK JavaScript extension and utilities |
zul.box | The box widgets, such as hbox and vbox. |
zul.inp | The input related widgets, such as textbox and combobox. |
zul.wgt | The basic widgets, such as button and div. |
Uses of Offset in _global_ |
---|
Fields in _global_ declared as Offset | |
---|---|
static Offset |
zk.clickPointer
The last position that the mouse was clicked (including left and right clicks). |
static Offset |
zk.currentPointer
The position of the mouse (including mouse move and click). |
Methods in _global_ that return Offset | |
---|---|
Offset |
jqzk.cmOffset()
Returns the cumulative offset of the first matched element from the top left corner of the document. |
Offset |
jqzk.revisedOffset()
Returns the revised (i.e., browser's coordinate) offset of the selected element. |
Offset |
jqzk.revisedOffset(Offset ofs)
Converts the specified offset in the element's coordinate to to the browser window's coordinateReturns the revised (calibrated) offset, i.e., the offset of the element related to the screen. |
Offset |
jqzk.scrollOffset()
Calculates the cumulative scroll offset of the first matched element in nested scrolling containers. |
Offset |
jqzk.toStyleOffset(int x,
int y)
Converts an offset (x,y) from absolute coordination to the element's style coordination, such that you can assign them to the style (el.style). |
Offset |
jqzk.viewportOffset()
Returns the X/Y coordinates of the first matched element relative to the viewport. |
Methods in _global_ with parameters of type Offset | |
---|---|
static boolean |
jq.isOverlapped(Offset ofs1,
Offset dim1,
Offset ofs2,
Offset dim2)
Returns if the specified rectangles are overlapped with each other. |
static boolean |
jq.isOverlapped(Offset ofs1,
Offset dim1,
Offset ofs2,
Offset dim2,
int the)
Returns if the specified rectangles are overlapped with each other. |
Offset |
jqzk.revisedOffset(Offset ofs)
Converts the specified offset in the element's coordinate to to the browser window's coordinateReturns the revised (calibrated) offset, i.e., the offset of the element related to the screen. |
Uses of Offset in zk |
---|
Methods in zk that return Offset | |
---|---|
Offset |
Widget.fromPageCoord(int x,
int y)
Converts a coordinate related to the browser window into the coordinate related to this widget. |
protected Offset |
Draggable.snap_(Offset ofs)
Snaps the dragging position. |
Methods in zk with parameters of type Offset | |
---|---|
protected DOMElement |
Widget.cloneDrag_(Draggable drag,
Offset ofs)
Called to create the visual effect representing what is being dragged. |
static Widget |
DnD.getDrop(Draggable drag,
Offset pt,
Event evt)
Returns the widget to drop to. |
static DOMElement |
DnD.ghost(Draggable drag,
Offset ofs,
String msg)
Ghost the DOM element being dragged. |
protected Offset |
Draggable.snap_(Offset ofs)
Snaps the dragging position. |
Uses of Offset in zul.box |
---|
Methods in zul.box with parameters of type Offset | |
---|---|
void |
Splitter.setOpen(boolean open,
Offset opts)
Opens or collapses the splitter. |
Uses of Offset in zul.inp |
---|
Methods in zul.inp with parameters of type Offset | |
---|---|
static boolean |
InputCtrl.isIgnoredDragForErrorbox(Draggable dg,
Offset pointer,
Event evt)
Returns whether to ignore the dragdrop for errorbox |
Uses of Offset in zul.wgt |
---|
Methods in zul.wgt with parameters of type Offset | |
---|---|
void |
Popup.open(String ref,
Offset offset,
String position,
Map opts)
Opens the popup. |
void |
Popup.open(Widget ref,
Offset offset,
String position,
Map opts)
Opens the popup. |
void |
Popup.position(Widget ref,
Offset offset,
String position,
Map opts)
Sets the popup position. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |