absence_thelab
diff src/nwt/widget.h @ 0:1cffe3409164
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 23 Oct 2014 01:46:07 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/nwt/widget.h Thu Oct 23 01:46:07 2014 +0300 1.3 @@ -0,0 +1,26 @@ 1.4 +#ifndef _WIDGET_H_ 1.5 +#define _WIDGET_H_ 1.6 + 1.7 +#include <windows.h> 1.8 +#include "typedefs.h" 1.9 + 1.10 +struct Point; 1.11 +struct Rect; 1.12 + 1.13 +#define NWT_CENTERX -0xdead 1.14 +#define NWT_CENTERY -0xbeef 1.15 + 1.16 +typedef HWND__ Widget; 1.17 + 1.18 +#define NWT_WIN_TOPMOST 1 1.19 + 1.20 +Widget *NWCreateWindow(const char *name, int x, int y, int xsz, int ysz, uint16 flags); 1.21 +void NWResize(Widget *wdg, int nx, int ny); 1.22 +void NWResizeClientArea(Widget *wdg, uint32 WinStyle); 1.23 + 1.24 +void NWSetWindowPos(Widget *wdg, const Point &pos); 1.25 + 1.26 +Point NWGetWindowPos(Widget *wdg); 1.27 +Point NWGetWindowSize(Widget *wdg); 1.28 + 1.29 +#endif // _WIDGET_H_ 1.30 \ No newline at end of file