1gii_expose_event(3)                   GGI                  gii_expose_event(3)
2
3
4

NAME

6       gii_expose_event : LibGII expose events
7

SYNOPSIS

9       #include <ggi/events.h>
10
11       typedef struct gii_expose_event {
12
13           COMMON_DATA;
14
15           uint32_t  x,y;
16           uint32_t  h,w;
17
18       } gii_expose_event;
19
20

DESCRIPTION

22       If an application loses the focus and is not physically displayed (e.g.
23       console switching, iconifying), it may be  stopped.  Some  targets  may
24       implement a backbuffer and allow continuing, though.
25
26       After  reactivation, the application will receive a redraw event, evEx‐
27       pose.
28

GENERATED EVENTS

30       The gii_expose_event is used for the evExpose event.
31

STRUCTURE MEMBERS

33       The fields describe the region which needs to be redrawn.
34

EXAMPLES

36       evExpose handling skeleton:
37
38       ggi_visual_t vis;
39       ggi_event ev;
40
41       /* ... wait and get the event... */
42
43       if (ev.any.type == evExpose) {
44           /* We might not be able to render partially ... */
45           render_screen(vis);
46
47           /* but flush only the region needed */
48           ggiFlushRegion(vis, ev.expose.x, ev.expose.y,
49                               ev.expose.w, ev.expose.h);
50       }
51
52       /* ... etc ... */
53
54

SEE ALSO

56       gii_event(3)
57
58
59
60libgii-1.0.x                      2006-12-30               gii_expose_event(3)
Impressum