mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
name
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@33 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
#include <Milsko/Milsko.h>
|
||||
|
||||
void handler(MilskoWidget handle){
|
||||
printf("hello world!\n");
|
||||
}
|
||||
|
||||
int main(){
|
||||
MilskoWidget window = MilskoCreateWidget(MilskoWindowClass, "main", NULL, 0, 0, 400, 400);
|
||||
MilskoWidget button = MilskoCreateWidget(MilskoButtonClass, "button", window, 50, 50, 300, 300);
|
||||
@@ -10,5 +14,9 @@ int main(){
|
||||
MilskoNtitle, "hello world",
|
||||
NULL);
|
||||
|
||||
MilskoApply(button,
|
||||
MilskoNactivateHandler, handler,
|
||||
NULL);
|
||||
|
||||
MilskoLoop(window);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user