Skip to main content

PlatformUtil

Kindclass
Packageutils
Full nameutils.PlatformUtil
Sourcesource/utils/PlatformUtil.hx

Public methods​

getWindowsTransparent​

static function getWindowsTransparent(res:Int = 0)

Only compiled when #if cpp.

ParameterTypeDefault
res (optional)Int0

View source

sendFakeMsgBox​

static function sendFakeMsgBox(desc:String = "", res:Int = 0)

Only compiled when #if cpp.

Shows the native crash dialog available on the current desktop platform.

ParameterTypeDefault
desc (optional)String""
res (optional)Int0

View source

getWindowsBackward​

static function getWindowsBackward(res:Int = 0)

Only compiled when #if cpp.

ParameterTypeDefault
res (optional)Int0

View source

updateWallpaper​

static function updateWallpaper()

Only compiled when #if cpp.

View source

detectWine​

static function detectWine():Bool

Only compiled when #if cpp.

View source

getArch​

static function getArch():String

Only compiled when #if cpp.

View source

unsupportedMetaHorror​

static function unsupportedMetaHorror(fn:String):Void

Trace helper for 4th-wall-breaking (META_HORROR) effects called on a build without the define or on a platform where the effect does not exist. Compiled on every target so backend.MetaHorror no-op paths typecheck everywhere.

ParameterTypeDefault
fnString—

View source