Files
milsko/example.c
NishiOwO 1f0fee4df9 rahhh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@37 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-09-29 00:06:16 +00:00

19 lines
432 B
C

/* $Id$ */
#include <Mw/Mw.h>
void handler(MwWidget handle, void* user_data, void* call_data){
printf("hello world!\n");
}
int main(){
MwWidget window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 400,
MwNtitle, "hello world",
NULL);
MwWidget button = MwVaCreateWidget(MwButtonClass, "button", window, 50, 50, 300, 300, NULL);
MwAddUserHandler(button, MwNactivateHandler, handler, NULL);
MwLoop(window);
}