Package ilcd
Class Control

Public Method copyViewport

static void copyViewport(int screen, int viewport, boolean copyContent, int posX, int posY)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
screen M, 0 ... number of screens - 1 index of the screen to copied to (M = main screen)
viewport 1 ... 8 index of the new viewport
copyContent false ... true copy display content (true) or just the parameters (false)
posX 0 ... display width - 1 x coordinate for the new viewport's origin
posY 0 ... display height - 1 y coordinate for the new viewport's origin

Creates a new viewport with viewport as index at the specified position (posX and posY) of the selected screen and assigns all attributes of the currently selected viewport to it.

Note

Example

Control.copyViewport(0, 2, true, 45, 60);

On screen #0, a new viewport with an index of 2 and the same dimensions as the previously selected viewport is created. It has the same content as the selected viewport, its origin is at the coordinates x = 45 and y = 60. The cursor position of screen #0 is also set to this position.

See also:

Viewports Related Methods