System.hx 1.4 KB

12345678910111213141516171819202122232425262728
  1. package flash.system;
  2. extern class System {
  3. @:flash.property @:require(flash10_1) static var freeMemory(get,never) : Float;
  4. @:flash.property static var ime(get,never) : IME;
  5. @:flash.property @:require(flash10_1) static var privateMemory(get,never) : Float;
  6. @:flash.property @:require(flash11) static var processCPUUsage(get,never) : Float;
  7. @:flash.property static var totalMemory(get,never) : UInt;
  8. @:flash.property @:require(flash10_1) static var totalMemoryNumber(get,never) : Float;
  9. @:flash.property static var useCodePage(get,set) : Bool;
  10. @:flash.property static var vmVersion(get,never) : String;
  11. @:require(flash10_1) static function disposeXML(node : flash.xml.XML) : Void;
  12. static function exit(code : UInt) : Void;
  13. static function gc() : Void;
  14. private static function get_freeMemory() : Float;
  15. private static function get_ime() : IME;
  16. private static function get_privateMemory() : Float;
  17. private static function get_processCPUUsage() : Float;
  18. private static function get_totalMemory() : UInt;
  19. private static function get_totalMemoryNumber() : Float;
  20. private static function get_useCodePage() : Bool;
  21. private static function get_vmVersion() : String;
  22. static function pause() : Void;
  23. @:require(flash11) static function pauseForGCIfCollectionImminent(imminence : Float = 0.75) : Void;
  24. static function resume() : Void;
  25. static function setClipboard(string : String) : Void;
  26. private static function set_useCodePage(value : Bool) : Bool;
  27. }