git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@35 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-29 00:01:58 +00:00
parent 431e1d6dec
commit 4910b4d1d8
5 changed files with 49 additions and 40 deletions

View File

@@ -2,7 +2,7 @@
#include <Milsko/Milsko.h>
void handler(MilskoWidget handle){
void handler(MilskoWidget handle, void* user_data, void* call_data){
printf("hello world!\n");
}
@@ -10,9 +10,9 @@ 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);
MilskoWidget button = MilskoVaCreateWidget(MilskoButtonClass, "button", window, 50, 50, 300, 300, NULL);
MilskoAddUserHandler(button, MilskoNactivateHandler, handler, NULL);
MilskoLoop(window);
}