1
1
Эх сурвалжийг харах

added x,y,width,height to window

Zoadian 11 жил өмнө
parent
commit
227950171b

+ 14 - 3
source/three/glfw/window.d

@@ -122,9 +122,20 @@ public:
 		glfwMakeContextCurrent(this._glfwWindow);
 	}
 
-	///
-	WindowRect getBounds() const @safe nothrow {
-		return [_x, _y, _w, _h];
+	uint x() const @safe nothrow {
+		return _x;
+	}	
+
+	uint y() const @safe nothrow {
+		return _y;
+	}
+
+	uint width() const @safe nothrow {
+		return _w;
+	}	
+	
+	uint height() const @safe nothrow {
+		return _h;
 	}
 
 	///