| Package | com.hippohx |
| Class | public class System |
| Inheritance | System HaxeBackendListener flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
System()
Do NOT call this constructor, please use getInstance method instead.
| System | ||
|
clearClipBoard():void
Clears system's clipboard.
| System | ||
|
getAppDataFolder():String
Returns the path to system's application data folder.
| System | ||
|
getClipBoardText():String
Gets system's clipboard.
| System | ||
![]() |
getHaxeBackendId():String
Returns HAXE_BACKEND API identifier.
| HaxeBackendListener | |
|
[static]
Use this method to retrieve an instance of the class, do NOT call the constructor directly.
| System | ||
|
Returns a ScreenSizeObject with system's screen width and height.
| System | ||
|
getSystemName():String
Returns a String with the name of the operating system.
| System | ||
|
getSystemSeparator():String
Returns a String with system's path separator.
| System | ||
|
getTempFolder():String
Returns a String with path to the system's temp folder.
| System | ||
|
getUserFolder():String
Returns the path to user's data folder.
| System | ||
|
isMac():Boolean
Checks if the running operating system is Mac.
| System | ||
|
isWindows():Boolean
Checks if the running operating system is Windows.
| System | ||
|
setClipBoardText(txt:String):void
Sets system's clipboard.
| System | ||
| Constant | Defined by | ||
|---|---|---|---|
| MAC : String = "Mac" [static]
Mac identifier.
| System | ||
| MAC_SEPARATOR : String = "/" [static]
Mac path separator.
| System | ||
| WIN : String = "Windows" [static]
Windows identifier.
| System | ||
| WIN_SEPARATOR : String = "\" [static]
Windows path separator.
| System | ||
| System | () | constructor |
public function System()Do NOT call this constructor, please use getInstance method instead.
See also
| clearClipBoard | () | method |
public function clearClipBoard():voidClears system's clipboard.
Neko call is systools.Clipboard.clear();.
See also
| getAppDataFolder | () | method |
public function getAppDataFolder():StringReturns the path to system's application data folder. Please use this folder to store any files your application might need such as configuration files, etc. Read Keep your data in the right place for more info.
ReturnsString — A string with the path to system's application data folder. In Windows is the value of %APPDATA% and in Macs ~/Library/Application Support.
|
| getClipBoardText | () | method |
public function getClipBoardText():StringGets system's clipboard.
Neko call is systools.Clipboard.getText();.
ReturnsString — System's clipboard.
|
See also
| getInstance | () | method |
public static function getInstance():SystemUse this method to retrieve an instance of the class, do NOT call the constructor directly. Note that you don't need to store the instance to access its methods, you can simply do this:
var userFolder:String = System.getInstance().getUserFolder();
System |
| getScreenSize | () | method |
public function getScreenSize():ScreenSizeObjectReturns a ScreenSizeObject with system's screen width and height.
Neko call is systools.Clipboard.getScreenSize();.
ReturnsScreenSizeObject —
A ScreenSizeObject with system's screen width and height.
|
See also
| getSystemName | () | method |
public function getSystemName():StringReturns a String with the name of the operating system.
ReturnsString — A String with name of the operating system. "Windows" for Windows and "Mac" for errr... Macs.
|
See also
| getSystemSeparator | () | method |
public function getSystemSeparator():StringReturns a String with system's path separator.
ReturnsString — A String with system's path separator, "/" for Macs, "\" for Windows.
|
See also
| getTempFolder | () | method |
public function getTempFolder():StringReturns a String with path to the system's temp folder.
ReturnsString — A String with path to the system's temp folder.
|
| getUserFolder | () | method |
public function getUserFolder():StringReturns the path to user's data folder. Please do NOT use this folder to store any files your application might need such as configuration files, etc. Read Keep your data in the right place for more info.
ReturnsString — A string with the path to user's data folder. In Windows is the value of "C:\Windows\Documents and Settings\\user" and in Macs the value of the $HOME variable.
|
See also
| isMac | () | method |
public function isMac():BooleanChecks if the running operating system is Mac.
ReturnsBoolean — true if the running operating system is Mac, false otherwise.
|
See also
| isWindows | () | method |
public function isWindows():BooleanChecks if the running operating system is Windows.
ReturnsBoolean — true if the running operating system is Windows, false otherwise.
|
See also
| setClipBoardText | () | method |
public function setClipBoardText(txt:String):voidSets system's clipboard.
Neko call is systools.Clipboard.setText(txt);.
Parameterstxt:String |
See also
| MAC | constant |
| MAC_SEPARATOR | constant |
| WIN | constant |
| WIN_SEPARATOR | constant |
public static const WIN_SEPARATOR:String = "\"Windows path separator.
See also