absence_thelab

view 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 source
1 #ifndef _WIDGET_H_
2 #define _WIDGET_H_
4 #include <windows.h>
5 #include "typedefs.h"
7 struct Point;
8 struct Rect;
10 #define NWT_CENTERX -0xdead
11 #define NWT_CENTERY -0xbeef
13 typedef HWND__ Widget;
15 #define NWT_WIN_TOPMOST 1
17 Widget *NWCreateWindow(const char *name, int x, int y, int xsz, int ysz, uint16 flags);
18 void NWResize(Widget *wdg, int nx, int ny);
19 void NWResizeClientArea(Widget *wdg, uint32 WinStyle);
21 void NWSetWindowPos(Widget *wdg, const Point &pos);
23 Point NWGetWindowPos(Widget *wdg);
24 Point NWGetWindowSize(Widget *wdg);
26 #endif // _WIDGET_H_