Преглед на файлове

added x,y,width,height to window

Zoadian преди 11 години
родител
ревизия
227950171b
променени са 1 файла, в които са добавени 14 реда и са изтрити 3 реда
  1. 14 3
      source/three/glfw/window.d

+ 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;
 	}
 
 	///