Class for functions that talk to a lower level than haxe, such as message boxes, and more. Some functions might not have effect on some platforms.
Static methods
staticaddFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int
Removes from the specified file's (or folder) one (or more) specific attribute.
staticallocConsole():Void
Allocates a new console. The console will automatically be opened
staticgetFileAttributes(path:String, useAbsol:Bool = true):FileAttributeWrapper
Gets the specified file's (or folder) attributes and passes it to FileAttributeWrapper
.
staticgetFileAttributesRaw(path:String, useAbsol:Bool = true):Int
Gets the specified file's (or folder) attributes.
statichasVersion(vers:String):Bool
Can be used to check if your using a specific version of an OS (or if your using a certain OS).
staticredrawWindowHeader():Void
Forces the window header to redraw, causes a small visual jitter so use it sparingly.
staticremoveFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int
Removes from the specified file's (or folder) one (or more) specific attribute.
staticresetWindowBorderColor(title:String, setHeader:Bool = true, setBorder:Bool = true):Void
Resets the window's border color to the default one.
WARNING: This is exclusive to windows 11 users, unfortunately.
staticresetWindowTitleColor(title:String):Void
Resets the window's title color to the default one.
WARNING: This is exclusive to windows 11 users, unfortunately.
staticsetConsoleColors(foregroundColor:ConsoleColor = NONE, backgroundColor:ConsoleColor = NONE):Void
Sets the console colors
staticsetDarkMode(title:String, enable:Bool):Void
Switch the window's color mode to dark or light mode.
staticsetFileAttributes(path:String, attrib:OneOfThree<FileAttribute, FileAttributeWrapper, Int>, useAbsol:Bool = true):Int
Sets the specified file's (or folder) attributes. If it fails, the return value is 0
.
staticsetWindowBorderColor(title:String, color:FlxColor, setHeader:Bool = true, setBorder:Bool = true):Void
Switch the window's color to any color.
WARNING: This is exclusive to windows 11 users, unfortunately.
NOTE: Setting the color to 0x00000000 (FlxColor.TRANSPARENT) will set the border (must have setBorder on) invisible.
staticsetWindowTitleColor(title:String, color:FlxColor):Void
Switch the window's title text to any color.
WARNING: This is exclusive to windows 11 users, unfortunately.
staticshowMessageBox(caption:String, message:String, icon:MessageBoxIcon = MSG_WARNING):Void
Shows a message box