mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-09-01 03:15:53 +00:00
19 lines
559 B
Haxe
19 lines
559 B
Haxe
package funkin.external.ios;
|
|
|
|
#if ios
|
|
/**
|
|
* A Utility class to get iOS screen related informations.
|
|
*/
|
|
@:build(funkin.util.macro.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;
|
|
}
|
|
#end
|