Codename LogoCodename Logo

funkin.backend.utils.NativeAPI

APIWikiTools

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

View in GitHub

staticaddFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int

Removes from the specified file's (or folder) one (or more) specific attribute.

View in GitHub

staticallocConsole():Void

Allocates a new console. The console will automatically be opened

View in GitHub

staticgetFileAttributes(path:String, useAbsol:Bool = true):FileAttributeWrapper

Gets the specified file's (or folder) attributes and passes it to FileAttributeWrapper.

View in GitHub

staticgetFileAttributesRaw(path:String, useAbsol:Bool = true):Int

Gets the specified file's (or folder) attributes.

View in GitHub

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).

View in GitHub

staticredrawWindowHeader():Void

Forces the window header to redraw, causes a small visual jitter so use it sparingly.

View in GitHub

staticremoveFileAttributes(path:String, attrib:OneOfTwo<FileAttribute, Int>, useAbsol:Bool = true):Int

Removes from the specified file's (or folder) one (or more) specific attribute.

View in GitHub

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.

View in GitHub

staticresetWindowTitleColor(title:String):Void

Resets the window's title color to the default one.

WARNING: This is exclusive to windows 11 users, unfortunately.

View in GitHub

staticsetConsoleColors(foregroundColor:ConsoleColor = NONE, backgroundColor:ConsoleColor = NONE):Void

Sets the console colors

View in GitHub

staticsetDarkMode(title:String, enable:Bool):Void

Switch the window's color mode to dark or light mode.

View in GitHub

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.

View in GitHub

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.

View in GitHub

staticsetWindowTitleColor(title:String, color:FlxColor):Void

Switch the window's title text to any color.

WARNING: This is exclusive to windows 11 users, unfortunately.

View in GitHub

staticshowMessageBox(caption:String, message:String, icon:MessageBoxIcon = MSG_WARNING):Void

Shows a message box