17 lines
556 B
Haxe
17 lines
556 B
Haxe
package funkin.mobile.external.ios;
|
|
|
|
/**
|
|
* A Utility class to get iOS screen related informations.
|
|
*/
|
|
@:build(funkin.mobile.macros.LinkerMacro.xml('project/Build.xml'))
|
|
@:include('ScreenUtil.hpp')
|
|
@:unreflective
|
|
extern class ScreenUtil
|
|
{
|
|
@:native('getSafeAreaInsets')
|
|
static function getSafeAreaInsets(top:cpp.RawPointer<Float>, bottom:cpp.RawPointer<Float>, left:cpp.RawPointer<Float>, right:cpp.RawPointer<Float>):Void;
|
|
|
|
@:native('getScreenSize')
|
|
static function getScreenSize(width:cpp.RawPointer<Float>, height:cpp.RawPointer<Float>):Void;
|
|
}
|