File: xwindow.api

package info (click to toggle)
pdp 1%3A0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,904 kB
  • ctags: 4,405
  • sloc: ansic: 22,321; asm: 2,088; makefile: 551; perl: 145; sh: 93; cpp: 4
file content (103 lines) | stat: -rw-r--r-- 1,964 bytes parent folder | download | duplicates (4)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* cons / des */

FUN(void, init)    END
FUN(void, cleanup) END
FUN(void, free)    END

/* move the pointer */
FUN(void, warppointer)
    ARG(int, x)
    ARG(int, y)
END

FUN(void, warppointer_rel)
    ARG(float,x)
    ARG(float,y)
END

FUN(void,fullscreen) END

FUN(void,resize)
    ARG(int,width)
    ARG(int,height)
END

FUN(void, moveresize)
    ARG(int, xoffset)
    ARG(int, yoffset)
    ARG(int, width)
    ARG(int, height)
END

FUN(void, move)
    ARG(int, xoffset)
    ARG(int, yoffset)
END

/* fill a tile of the screen */
FUN(void, tile)
    ARG(int, x_nb_tiles)
    ARG(int, y_nb_tiles)
    ARG(int, tile_x)
    ARG(int, tile_y)
END

/* enable/disable cursor */
FUN(void, cursor)
    ARG(int, flag)
END

/* create zl_xwindow. return code != NULL on succes */
FUN(int, config)
    ARG(zl_xdisplay_p, d)
END

/* close window */
FUN(void, close) END

/* set title */
FUN(void, title)
    ARG(char_p, title)
END

/* clear event queue */
FUN(void, drop_events) END

/* Handle events.  X11 events are collected through the display
   connect, which is shared across multiple windows.  To collect
   events for a single window, we perform two operations: flush the
   display connection's event buffer and sort it into lists for each
   window, and then allow this list to be queried by the user.  To
   abstract the storage of this list, a callback mechanism is used. */

FUN(void, queue_event)
    ARG(XEvent_p, e)
END


FUN(void, for_events)
    ARG(zl_zwindow_event_fn, handle)
    ARG(void_p, context)
END

/* Like zl_xwindow_for_events, but using a state machine to parse the
   events into something more useful.  This is inherited from PDP, but
   uses just const strings and numbers. */
FUN(void, for_parsed_events)
    ARG(zl_receiver, handle)
    ARG(void_p, context)
END


FUN(int, winwidth)
END
FUN(int, winheight)
END
FUN(int, winxoffset)
END
FUN(int, winyoffset)
END

/* delegates to zl_xwdiwsplay_route_events() */
FUN(void, route_events)
END