소스 검색

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