rahhh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@37 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
b490488422
commit
1f0fee4df9
21 changed files with 176 additions and 176 deletions
14
example.c
14
example.c
|
|
@ -1,18 +1,18 @@
|
|||
/* $Id$ */
|
||||
|
||||
#include <Milsko/Milsko.h>
|
||||
#include <Mw/Mw.h>
|
||||
|
||||
void handler(MilskoWidget handle, void* user_data, void* call_data){
|
||||
void handler(MwWidget handle, void* user_data, void* call_data){
|
||||
printf("hello world!\n");
|
||||
}
|
||||
|
||||
int main(){
|
||||
MilskoWidget window = MilskoVaCreateWidget(MilskoWindowClass, "main", NULL, 0, 0, 400, 400,
|
||||
MilskoNtitle, "hello world",
|
||||
MwWidget window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 400,
|
||||
MwNtitle, "hello world",
|
||||
NULL);
|
||||
MilskoWidget button = MilskoVaCreateWidget(MilskoButtonClass, "button", window, 50, 50, 300, 300, NULL);
|
||||
MwWidget button = MwVaCreateWidget(MwButtonClass, "button", window, 50, 50, 300, 300, NULL);
|
||||
|
||||
MilskoAddUserHandler(button, MilskoNactivateHandler, handler, NULL);
|
||||
MwAddUserHandler(button, MwNactivateHandler, handler, NULL);
|
||||
|
||||
MilskoLoop(window);
|
||||
MwLoop(window);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue