absence_thelab

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