|
@@ -26,6 +26,7 @@ class Window {
|
|
public var x(get, never) : Int;
|
|
public var x(get, never) : Int;
|
|
public var y(get, never) : Int;
|
|
public var y(get, never) : Int;
|
|
public var displayMode(default, set) : DisplayMode;
|
|
public var displayMode(default, set) : DisplayMode;
|
|
|
|
+ public var visible(default, set) : Bool = true;
|
|
public var vsync : Bool;
|
|
public var vsync : Bool;
|
|
|
|
|
|
public function new( title : String, width : Int, height : Int ) {
|
|
public function new( title : String, width : Int, height : Int ) {
|
|
@@ -62,6 +63,13 @@ class Window {
|
|
return mode;
|
|
return mode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function set_visible(b) {
|
|
|
|
+ if( visible == b )
|
|
|
|
+ return b;
|
|
|
|
+ winResize(win, b ? 4 : 3);
|
|
|
|
+ return visible = b;
|
|
|
|
+ }
|
|
|
|
+
|
|
public function resize( width : Int, height : Int ) {
|
|
public function resize( width : Int, height : Int ) {
|
|
winSetSize(win, width, height);
|
|
winSetSize(win, width, height);
|
|
}
|
|
}
|