16 int main(int argc
, char **argv
)
18 Display
*dpy
= XOpenDisplay("");
24 WMInitializeApplication("Test", &argc
, argv
);
27 wfatal("could not open display");
31 scr
= WMCreateSimpleApplicationScreen(dpy
);
36 win
= WMCreateWindow(scr
, "test");
37 WMResizeWidget(win
, 150, 50);
39 thing
= CreateMyWidget(win
);
40 SetMyWidgetText(thing
, "The Test");
41 WMResizeWidget(thing
, 100, 20);
42 WMMoveWidget(thing
, 10, 10);
48 WMScreenMainLoop(scr
);