Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,6 @@
package system;
@:native("System.Uri")
extern class Uri {
function new(filename: String, kind: UriKind): Void;
}

View File

@ -0,0 +1,8 @@
package system;
@:native("System.UriKind")
extern enum UriKind {
RelativeOrAbsolute;
Absolute;
Relative;
}

View File

@ -0,0 +1,10 @@
package system.diagnostics;
import haxe.Int64;
@:native("System.Diagnostics.Stopwatch")
extern class Stopwatch {
public function new(): Void;
public function Start(): Void;
public var ElapsedMilliseconds: Int64;
}

View File

@ -0,0 +1,6 @@
package system.io;
@:native("System.IO.Directory")
extern class Directory {
public static function CreateDirectory(path: String): DirectoryInfo;
}

View File

@ -0,0 +1,4 @@
package system.io;
@:native("System.IO.DirectoryInfo")
extern class DirectoryInfo {}

View File

@ -0,0 +1,13 @@
package system.io;
import haxe.io.BytesData;
@:native("System.IO.File")
extern class File {
public static function AppendAllText(path: String, contents: String): Void;
public static function ReadAllText(filename: String): String;
public static function WriteAllText(path: String, contents: String): Void;
public static function ReadAllBytes(path: String): BytesData;
public static function WriteAllBytes(path: String, bytes: BytesData): Void;
public static function Exists(path: String): Bool;
}

View File

@ -0,0 +1,6 @@
package system.io;
@:native("System.IO.Path")
extern class Path {
public static function GetFullPath(path: String): String;
}

View File

@ -0,0 +1,10 @@
package system.windows;
import system.windows.input.Cursor;
@:native("System.Windows.FrameworkElement")
extern class FrameworkElement {
public var Cursor: Cursor;
public var Width: Float;
public var Height: Float;
}

View File

@ -0,0 +1,6 @@
package system.windows;
@:native("System.Windows.Window")
extern class Window extends FrameworkElement {
public function AddChild(child: FrameworkElement): Void;
}

View File

@ -0,0 +1,8 @@
package system.windows.controls;
import system.windows.FrameworkElement;
@:native("System.Windows.Controls.Canvas")
extern class Canvas extends FrameworkElement {
public function new(): Void;
}

View File

@ -0,0 +1,24 @@
package system.windows.controls;
import system.Uri;
@:native("System.Windows.Controls.MediaElement")
extern class MediaElement {
public var Volume: Float;
public var Source: Uri;
public var LoadedBehavior: MediaState;
public var UnloadedBehavior: MediaState;
public var MediaOpened: Dynamic;
public function new(): Void {}
public function Play(): Void {}
public function Pause(): Void {}
public function Stop(): Void {}
}
@:native("System.Windows.RoutedEventArgs")
extern class RoutedEventArgs {}

View File

@ -0,0 +1,10 @@
package system.windows.controls;
@:native("System.Windows.Controls.MediaState")
extern enum MediaState {
Manual;
Play;
Close;
Pause;
Stop;
}

View File

@ -0,0 +1,4 @@
package system.windows.input;
@:native("System.Windows.Input.Cursor")
extern class Cursor {}

View File

@ -0,0 +1,8 @@
package system.windows.input;
@:native("System.Windows.Input.Cursors")
extern class Cursors {
public static var Arrow: Cursor;
public static var Hand: Cursor;
public static var Wait: Cursor;
}

View File

@ -0,0 +1,6 @@
package system.windows.input;
@:native("System.Windows.Input.Mouse")
extern class Mouse {
public static var OverrideCursor: Cursor;
}

View File

@ -0,0 +1,4 @@
package system.windows.media;
@:native("System.Windows.Media.Color")
extern class Color {}

View File

@ -0,0 +1,7 @@
package system.windows.media;
@:native("System.Windows.Media.DrawingContext")
extern class DrawingContext {
public function PushTransform(transform: MatrixTransform): Void;
public function Pop(): Void;
}

View File

@ -0,0 +1,7 @@
package system.windows.media;
@:native("System.Windows.Media.DrawingVisual")
extern class DrawingVisual {
public function new();
public function RenderOpen(): DrawingContext;
}

View File

@ -0,0 +1,10 @@
package system.windows.media;
@:native("System.Windows.Media.ImageBrush")
extern class ImageBrush {
// public function new();
public function new(source: ImageSource);
public var ImageSource(get, set): ImageSource;
function get_ImageSource(): ImageSource;
function set_ImageSource(source: ImageSource): ImageSource;
}

View File

@ -0,0 +1,6 @@
package system.windows.media;
@:native("System.Windows.Media.ImageSource")
extern class ImageSource {
public function new() {}
}

View File

@ -0,0 +1,6 @@
package system.windows.media;
@:native("System.Windows.Media.MatrixTransform")
extern class MatrixTransform {
public function new(m11: Float, m12: Float, m21: Float, m22: Float, offsetX: Float, offsetY: Float);
}

View File

@ -0,0 +1,16 @@
package system.windows.media;
@:native("System.Windows.Media.MediaPlayer")
extern class MediaPlayer {
public var Volume: Float;
public function new(): Void;
public function Open(uri: Uri): Void;
public function Play(): Void;
public function Pause(): Void;
public function Stop(): Void;
}

View File

@ -0,0 +1,4 @@
package system.windows.media.imaging;
@:native("System.Windows.Media.Imaging.BitmapSource")
extern class BitmapSource {}