2 #include <WINGs/WINGs.h>
12 int main(int argc
, char **argv
)
14 Display
*dpy
= XOpenDisplay("");
19 WMInitializeApplication("Test", &argc
, argv
);
22 wfatal("could not open display");
26 scr
= WMCreateSimpleApplicationScreen(dpy
);
31 win
= WMCreateWindow(scr
, "test");
32 WMResizeWidget(win
, 150, 50);
34 thing
= CreateMyWidget(win
);
35 SetMyWidgetText(thing
, "The Test");
36 WMResizeWidget(thing
, 100, 20);
37 WMMoveWidget(thing
, 10, 10);
43 WMScreenMainLoop(scr
);