forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
6
Kha/Backends/WPF/system/Uri.hx
Normal file
6
Kha/Backends/WPF/system/Uri.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system;
|
||||
|
||||
@:native("System.Uri")
|
||||
extern class Uri {
|
||||
function new(filename: String, kind: UriKind): Void;
|
||||
}
|
8
Kha/Backends/WPF/system/UriKind.hx
Normal file
8
Kha/Backends/WPF/system/UriKind.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package system;
|
||||
|
||||
@:native("System.UriKind")
|
||||
extern enum UriKind {
|
||||
RelativeOrAbsolute;
|
||||
Absolute;
|
||||
Relative;
|
||||
}
|
10
Kha/Backends/WPF/system/diagnostics/Stopwatch.hx
Normal file
10
Kha/Backends/WPF/system/diagnostics/Stopwatch.hx
Normal 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;
|
||||
}
|
6
Kha/Backends/WPF/system/io/Directory.hx
Normal file
6
Kha/Backends/WPF/system/io/Directory.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system.io;
|
||||
|
||||
@:native("System.IO.Directory")
|
||||
extern class Directory {
|
||||
public static function CreateDirectory(path: String): DirectoryInfo;
|
||||
}
|
4
Kha/Backends/WPF/system/io/DirectoryInfo.hx
Normal file
4
Kha/Backends/WPF/system/io/DirectoryInfo.hx
Normal file
@ -0,0 +1,4 @@
|
||||
package system.io;
|
||||
|
||||
@:native("System.IO.DirectoryInfo")
|
||||
extern class DirectoryInfo {}
|
13
Kha/Backends/WPF/system/io/File.hx
Normal file
13
Kha/Backends/WPF/system/io/File.hx
Normal 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;
|
||||
}
|
6
Kha/Backends/WPF/system/io/Path.hx
Normal file
6
Kha/Backends/WPF/system/io/Path.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system.io;
|
||||
|
||||
@:native("System.IO.Path")
|
||||
extern class Path {
|
||||
public static function GetFullPath(path: String): String;
|
||||
}
|
10
Kha/Backends/WPF/system/windows/FrameworkElement.hx
Normal file
10
Kha/Backends/WPF/system/windows/FrameworkElement.hx
Normal 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;
|
||||
}
|
6
Kha/Backends/WPF/system/windows/Window.hx
Normal file
6
Kha/Backends/WPF/system/windows/Window.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system.windows;
|
||||
|
||||
@:native("System.Windows.Window")
|
||||
extern class Window extends FrameworkElement {
|
||||
public function AddChild(child: FrameworkElement): Void;
|
||||
}
|
8
Kha/Backends/WPF/system/windows/controls/Canvas.hx
Normal file
8
Kha/Backends/WPF/system/windows/controls/Canvas.hx
Normal 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;
|
||||
}
|
24
Kha/Backends/WPF/system/windows/controls/MediaElement.hx
Normal file
24
Kha/Backends/WPF/system/windows/controls/MediaElement.hx
Normal 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 {}
|
10
Kha/Backends/WPF/system/windows/controls/MediaState.hx
Normal file
10
Kha/Backends/WPF/system/windows/controls/MediaState.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package system.windows.controls;
|
||||
|
||||
@:native("System.Windows.Controls.MediaState")
|
||||
extern enum MediaState {
|
||||
Manual;
|
||||
Play;
|
||||
Close;
|
||||
Pause;
|
||||
Stop;
|
||||
}
|
4
Kha/Backends/WPF/system/windows/input/Cursor.hx
Normal file
4
Kha/Backends/WPF/system/windows/input/Cursor.hx
Normal file
@ -0,0 +1,4 @@
|
||||
package system.windows.input;
|
||||
|
||||
@:native("System.Windows.Input.Cursor")
|
||||
extern class Cursor {}
|
8
Kha/Backends/WPF/system/windows/input/Cursors.hx
Normal file
8
Kha/Backends/WPF/system/windows/input/Cursors.hx
Normal 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;
|
||||
}
|
6
Kha/Backends/WPF/system/windows/input/Mouse.hx
Normal file
6
Kha/Backends/WPF/system/windows/input/Mouse.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system.windows.input;
|
||||
|
||||
@:native("System.Windows.Input.Mouse")
|
||||
extern class Mouse {
|
||||
public static var OverrideCursor: Cursor;
|
||||
}
|
4
Kha/Backends/WPF/system/windows/media/Color.hx
Normal file
4
Kha/Backends/WPF/system/windows/media/Color.hx
Normal file
@ -0,0 +1,4 @@
|
||||
package system.windows.media;
|
||||
|
||||
@:native("System.Windows.Media.Color")
|
||||
extern class Color {}
|
7
Kha/Backends/WPF/system/windows/media/DrawingContext.hx
Normal file
7
Kha/Backends/WPF/system/windows/media/DrawingContext.hx
Normal 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;
|
||||
}
|
7
Kha/Backends/WPF/system/windows/media/DrawingVisual.hx
Normal file
7
Kha/Backends/WPF/system/windows/media/DrawingVisual.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package system.windows.media;
|
||||
|
||||
@:native("System.Windows.Media.DrawingVisual")
|
||||
extern class DrawingVisual {
|
||||
public function new();
|
||||
public function RenderOpen(): DrawingContext;
|
||||
}
|
10
Kha/Backends/WPF/system/windows/media/ImageBrush.hx
Normal file
10
Kha/Backends/WPF/system/windows/media/ImageBrush.hx
Normal 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;
|
||||
}
|
6
Kha/Backends/WPF/system/windows/media/ImageSource.hx
Normal file
6
Kha/Backends/WPF/system/windows/media/ImageSource.hx
Normal file
@ -0,0 +1,6 @@
|
||||
package system.windows.media;
|
||||
|
||||
@:native("System.Windows.Media.ImageSource")
|
||||
extern class ImageSource {
|
||||
public function new() {}
|
||||
}
|
6
Kha/Backends/WPF/system/windows/media/MatrixTransform.hx
Normal file
6
Kha/Backends/WPF/system/windows/media/MatrixTransform.hx
Normal 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);
|
||||
}
|
16
Kha/Backends/WPF/system/windows/media/MediaPlayer.hx
Normal file
16
Kha/Backends/WPF/system/windows/media/MediaPlayer.hx
Normal 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;
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package system.windows.media.imaging;
|
||||
|
||||
@:native("System.Windows.Media.Imaging.BitmapSource")
|
||||
extern class BitmapSource {}
|
Reference in New Issue
Block a user