Skip to main content

Screenshot

Kindclass
Packagebackend
Full namebackend.Screenshot
Sourcesource/backend/Screenshot.hx
Compiled when#if !(sys)

Public fields​

NameTypeStaticDefaultNotes
slashStringyes"/"#if !(sys)

Public methods​

new (constructor)​

function new(x:Int = -1, y:Int = -1, w:Int = -1, h:Int = -1)

Only compiled when #if !(sys).

ParameterTypeDefault
x (optional)Int-1
y (optional)Int-1
w (optional)Int-1
h (optional)Int-1

View source

setRegion​

function setRegion(x:Int, y:Int, w:Int, h:Int)

Only compiled when #if !(sys).

ParameterTypeDefault
xInt—
yInt—
wInt—
hInt—

View source

save​

function save(path:String = "", name:String = ''):Bool

Only compiled when #if !(sys).

ParameterTypeDefault
path (optional)String""
name (optional)String''

View source