File: ggiEventPoll.3ggi

package info (click to toggle)
libggi 1%3A2.0.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,072 kB
  • ctags: 5,274
  • sloc: ansic: 42,720; sh: 6,508; makefile: 666
file content (73 lines) | stat: -rw-r--r-- 2,843 bytes parent folder | download
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
.\\" auto-generated by docbook2man-spec $Revision: 1.4 $
.TH "ggiEventPoll" "3ggi" "22 August 2001" "GGI" "LibGGI API"
.SH NAME
ggiJoinInputs, ggiEventPoll, ggiEventSelect, ggiEventsQueued, ggiEventRead, ggiSetEventMask, ggiGetEventMask, ggiAddEventMask, ggiRemoveEventMask \- Event management for LibGGI visual
.SH SYNOPSIS
\fB#include <ggi/ggi.h>
.sp
gii_input_t ggiJoinInputs(ggi_visual_t \fIvis\fB, 
gii_input_t \fIinp\fB);
.sp
gii_event_mask ggiEventPoll(ggi_visual_t \fIvis\fB, 
gii_event_mask \fImask\fB, 
struct timeval *\fIt\fB);
.sp
int giiEventSelect(ggi_visual_t\fIvis\fB, gii_event_mask *\fImask\fB,
int \fIn\fB,
fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB, fd_set *\fIexceptfds\fB,
struct timeval *\fItimeout\fB);
.sp
int ggiEventsQueued(ggi_visual_t \fIvis\fB, 
gii_event_mask \fImask\fB);
.sp
int ggiEventRead(ggi_visual_t \fIvis\fB, 
gii_event *\fIev\fB, 
gii_event_mask \fImask\fB);
.sp
int ggiSetEventMask(ggi_visual_t \fIvis\fB, 
gii_event_mask \fIevm\fB);
.sp
gii_event_mask ggiGetEventMask(ggi_visual_t \fIvis\fB);
.sp
int giiAddEventMask(ggi_visual_t \fIvis\fB, 
gii_event_mask \fImask\fB);
.sp
int giiRemoveEventMask(ggi_visual_t \fIvis\fB, 
gii_event_mask \fImask\fB);
\fR.SH "DESCRIPTION"
.PP
LibGGI provides input facilities through an auxiliary library,
\fBLibGII\fR.
Each LibGGI visual internally contains a \fBgii_input_t\fR input, and
all LibGII functions are available to manipulate and process inputs.
The LibGGI versions provided of most LibGII functions simply take a 
\fBggi_visual_t\fR rather than \fBgii_input_t\fR for convenience
during everyday usage. Events are LibGII types. All other semantics 
are the same; see \fBlibgii\fR(7) for details.
.sp
.RS
.B "Important:"
.PP
By default LibGGI visuals autodetect and open the appropriate inputs, 
including mouse and keyboard and any other inputs that are 'intrinsic' 
to the visual e.g. any registered X11 input device under the X target. 
Thus in the usual cases there is no need to open a LibGII 
\fBgii_input_t\fR directly (and that may in fact fail because an
input device is already open). The LibGGI \fBggiEvent*\fR
functions \fBmust\fR be used to do event handling with LibGGI
visuals, and provide adequate support for most everyday, single-visual
usage.
.PP
Advanced management of input sources is accomplished by detaching
the input from the visual and using LibGII functions on the separate
visual handle (see ggiDetachInput).
This is encouraged, for example, when joining inputs from multiple
visuals, because
when two visuals share the same joined input, you cannot
ggiClose both of the visuals (a fatal error will result, because 
closing the first visual closes both of the joined inputs and leaves
the second closed visual with a stale input handle.)
.RE
.sp
.SH "SEE ALSO"
\fBgiiSetEventMask\fR(3), \fBgiiEventPoll\fR(3), ggiDetachInput