summaryrefslogtreecommitdiff
path: root/widget.h
blob: 9e8c3b8cb0110345be3d7243a9f6abb0d4bbbae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef WIDGET_H
#define WIDGET_H

#include <skygi/skygi.h>

//! A general widget class

class CWidget {
	public:
		CWidget();
		HANDLE	GetHANDLE();
		HRESULT	SetSize(int w, int h);
		int	GetWidth();
		int	GetHeight();
		HRESULT	SetPos(int x, int y);
		int	GetX();
		int	GetXAbsolute();
		int	GetY();
		int 	GetYAbsolute();
		HRESULT	SetSizeAndPos(int x, int y, int w, int h);
		HRESULT	DimensionSetNotify(int notify, int x1, int y1, int w, int h);
		//HRESULT	SetParent(HANDLE hParent, int x, int y);
		HANDLE	GetParent();
		HANDLE	GetTopLevel();
		HRESULT	Hide();
		HRESULT Show();
	protected:
		HANDLE hWnd;
};		

#endif