-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathScreen.hx
More file actions
32 lines (28 loc) · 889 Bytes
/
Screen.hx
File metadata and controls
32 lines (28 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package nw;
typedef IndividualScreen = {
var id : Int;
// physical screen resolution, can be negative, not necessarily start from 0,depending on screen arrangement
var bounds : {
x : Int,
y : Int,
width : Int,
height : Int,
};
// useable area within the screen bound
var work_area : {
x : Int,
y : Int,
width : Int,
height : Int,
};
var scaleFactor : Float;
var isBuiltIn : Bool;
var rotation : Int;
var touchSupport : Int;
}
extern class Screen {
public static var screens(default, never) : Array<IndividualScreen>;
public static function Init() : Void;
public static function on( event : String, callb : IndividualScreen -> Void ) : Void;
public static function chooseDesktopMedia(sources : Array<String>, callb : Dynamic -> Void) : Void;
}