Package ilcd
Class ScreenParameters
int getY()
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns | Range | Description |
---|---|---|
y | 0 ... display height -1 | a integer which contains the height value |
Returns the vertical coordinate of the cursor position related to the viewport in the range of 0 ... display height - 1.
Example
// define and select a new viewport
Control.setCursorPosition(310,210);
Control.defineViewport(3, 2, 250, 200);
Control.selectViewport(3);
// set a new cursor position within the current selected viewport
Control.setCursorPosition(10,10);
// get screen parameter
ScreenParameters scrPar = Memory.getViewScreenParameters();
if (scrPar.getY() == 10) // verify if the cursor position is setup correctly
{
Draw.writeText(" The current y cursor position is 10 within the viewport 3! ");
}
See also:
Copyright © demmel products gmbh. All rights reserved.