mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 15:10:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@34 b9cfdab3-6d41-4d17-bbe4-086880011989
19 lines
415 B
C
19 lines
415 B
C
/* $Id$ */
|
|
|
|
#include <Milsko/Milsko.h>
|
|
|
|
void handler(MilskoWidget handle){
|
|
printf("hello world!\n");
|
|
}
|
|
|
|
int main(){
|
|
MilskoWidget window = MilskoVaCreateWidget(MilskoWindowClass, "main", NULL, 0, 0, 400, 400,
|
|
MilskoNtitle, "hello world",
|
|
NULL);
|
|
MilskoWidget button = MilskoVaCreateWidget(MilskoButtonClass, "button", window, 50, 50, 300, 300,
|
|
MilskoNactivateHandler, handler,
|
|
NULL);
|
|
|
|
MilskoLoop(window);
|
|
}
|