int getX()
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns | Description |
---|---|
X | the stored x value within a new created Position object |
A new created Position object can be used to save the current cursor position. A new cursor position is assigned to a Position object when the Control.getCursorPosition() method is called. Once a Position object is created, the x and y values at the objects creation time will be stored into the Position object for further use. The Control.getCursorPosition() method returns a Position object which contains the x, and y coordinate of the display.
Example
Position pos = Control.getCursorPosition();
Draw.writeText("stored x position: " + pos.getX());
See also:
Copyright © demmel products gmbh. All rights reserved.