skrypton-api / com.waicool20.skrypton.sikulix / SKryptonRegion / <init>

<init>

SKryptonRegion(region: Region, screen: SKryptonScreen)

Region constructor

Parameters

region - Region to inherit from.

screen - Screen that this region should belong to.

SKryptonRegion(rect: Rectangle, screen: SKryptonScreen)

Rectangle constructor

Parameters

rect - Uses the rectangles dimensions to construct this region.

screen - Screen that this region should belong to.

SKryptonRegion(xPos: Int, yPos: Int, width: Int, height: Int, screen: SKryptonScreen)

Like main constructor but has additional screen param.

Parameters

xPos - x coordinate of the top left corner of the region.

yPos - y coordinate of the top left corner of the region.

width - Width of the region.

height - Height of the region.

screen - Screen that this region should belong to.

SKryptonRegion(xPos: Int, yPos: Int, width: Int, height: Int)

Main constructor

Parameters

xPos - x coordinate of the top left corner of the region.

yPos - y coordinate of the top left corner of the region.

width - Width of the region.

height - Height of the region.

Constructor
Main constructor