summaryrefslogtreecommitdiff
path: root/widget.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
commitdfa4a46bb0e6c6df9d07039fda5ef7f4309915b2 (patch)
treeac8b4cc67ff64703b4298f077e87bb4eb4334410 /widget.cpp
parent3582a80243bdd92619e737111ada5b5bf2667cd7 (diff)
git-svn-id: svn://mattst88.com/svn/skygipp/trunk@2 a71248a0-261a-0410-b604-901f7c0bd773
Diffstat (limited to 'widget.cpp')
-rw-r--r--widget.cpp63
1 files changed, 63 insertions, 0 deletions
diff --git a/widget.cpp b/widget.cpp
new file mode 100644
index 0000000..f75e2aa
--- /dev/null
+++ b/widget.cpp
@@ -0,0 +1,63 @@
+#include <skygi/skygi.h>
+
+#include "widget.h"
+
+CWidget::CWidget() {
+ this->hWnd = NULL;
+}
+
+HANDLE CWidget::GetHANDLE() {
+ return this->hWnd;
+}
+
+HRESULT CWidget::SetSize(int w, int h) {
+ return GI_ApplicationSetSize(this->hWnd, w, h);
+}
+
+int CWidget::GetWidth() {
+ return GI_WindowGetWidth(this->hWnd);
+}
+
+int CWidget::GetHeight() {
+ return GI_WindowGetHeight(this->hWnd);
+}
+
+HRESULT CWidget::SetPos(int x, int y) {
+ return GI_WindowSetPos(this->hWnd, x, y);
+}
+
+int CWidget::GetX() {
+ return GI_WindowGetX(this->hWnd);
+}
+
+int CWidget::GetXAbsolute() {
+ return GI_WindowGetXAbsolute(this->hWnd);
+}
+
+int CWidget::GetY() {
+ return GI_WindowGetY(this->hWnd);
+}
+
+int CWidget::GetYAbsolute() {
+ return GI_WindowGetYAbsolute(this->hWnd);
+}
+
+HRESULT CWidget::SetSizeAndPos(int x, int y, int w, int h) {
+ return GI_WindowSetSizeAndPos(this->hWnd, x, y, w, h);
+}
+
+HRESULT CWidget::DimensionSetNotify(int notify, int x1, int y1, int w, int h) {
+ return GI_WindowDimensionSetNotify(this->hWnd, notify, x1, y1, w, h);
+}
+
+/*HRESULT CWidget::SetParent(HANDLE hParent, int x, int y) {
+ return GI_WindowSetParent(this->hWnd, hParent, x, y);
+}*/
+
+HANDLE CWidget::GetParent() {
+ return GI_WindowGetParent(this->hWnd);
+}
+
+HANDLE CWidget::GetTopLevel() {
+ return GI_WindowGetTopLevel(this->hWnd);
+}