1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-09-03 20:28:04 +00:00
Funkin/source/funkin/external/ios/ScreenUtil.hx

19 lines
559 B
Haxe
Raw Permalink Normal View History

package funkin.external.ios;
2025-08-02 19:59:22 +00:00
#if ios
/**
* A Utility class to get iOS screen related informations.
*/
@:build(funkin.util.macro.LinkerMacro.xml('project/Build.xml'))
2025-07-10 15:04:09 +00:00
@:include('ScreenUtil.hpp')
@:unreflective
2025-07-10 15:04:09 +00:00
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;
2025-07-09 09:02:55 +00:00
2025-04-19 09:06:57 +00:00
@:native('getScreenSize')
static function getScreenSize(width:cpp.RawPointer<Float>, height:cpp.RawPointer<Float>):Void;
}
2025-08-02 19:59:22 +00:00
#end