gii_expose_event(3)

gii_expose_event3

Libgii expose events

Usage

#include <ggi/events.h>
typedef struct gii_expose_event {
    COMMON_DATA;
    uint32_t  x,y;
    uint32_t  h,w;
} gii_expose_event;

Overview

If an application loses the focus and is not physically displayed (e.g. console switching, iconifying), it may be stopped. Some targets may implement a backbuffer and allow continuing, though.

After reactivation, the application will receive a redraw event, evExpose.

Generated events

The gii_expose_event is used for the evExpose event.

Structure members

The fields describe the region which needs to be redrawn.

Examples

evExpose handling skeleton:

ggi_visual_t vis;
ggi_event ev;
/* ... wait and get the event... */
if (ev.any.type == evExpose) {
    /* We might not be able to render partially ... */
    render_screen(vis);
    /* but flush only the region needed */
    ggiFlushRegion(vis, ev.expose.x, ev.expose.y,
                        ev.expose.w, ev.expose.h);
}
/* ... etc ... */

Releases

5 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–7

From libgii1 1:1.0.2-4.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.