-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcanvas-test.m
38 lines (34 loc) · 1.16 KB
/
canvas-test.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! xbigforth
\ automatic generated code
\ do not edit
also editor also minos also forth
component class comp0000
public:
glcanvas ptr gl1
glcanvas ptr gl2
glcanvas ptr gl3
button ptr gl2
( [varstart] ) ( [varend] )
how:
: params DF[ 0 ]DF X" No Title" ;
class;
comp0000 implements
( [methodstart] ) ( [methodend] )
: widget ( [dumpstart] )
GL[ ]GL ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop dopress cr ." zx " . . . . ]CK ( MINOS ) $64 $1 *hfil $64 $1 *vfil glcanvas new ^^bind gl1
GL[ ]GL ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop dopress cr ." xy " . . . . ]CK ( MINOS ) $64 $1 *hfil $64 $1 *vfil glcanvas new ^^bind gl2
#2 vabox new
GL[ ]GL ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop dopress cr ." zy " . . . . ]CK ( MINOS ) $64 $1 *hfil $64 $1 *vfil glcanvas new ^^bind gl3
$64 $1 *hfil $64 $1 *vfil glue new
#2 vabox new
#2 habox new #1 hskips
^^ S[ close ]S ( MINOS ) X" done" button new ^^bind gl2
#1 vabox new vfixbox
#2 vabox new
( [dumpend] ) ;
class;
: main
comp0000 open-app
event-loop bye ;
script? [IF] main [THEN]
previous previous previous