ggiSetGCClipping(3)

ggiSetGCClipping3

Set or get the clipping rectangle for a visual

Usage

#include <ggi/ggi.h>
int ggiSetGCClipping(ggi_visual_t vis, int left, int top,
                     int  right, int  bottom);
int ggiGetGCClipping(ggi_visual_t vis, int *left, int *top,
                     int *right, int *bottom);

Overview

ggiSetGCClipping sets the the current clipping rectangle to (left, top) - (right-1, bottom-1), inclusive.

Initially the clipping rectangle is the whole virtual screen.

All LibGGI drawing primitives obey the clipping rectangle. Negative coordinates given to LibGGI drawing functions will be clipped correctly.

ggiGetGCClipping reads the coordinates of the current clipping rectangle.

Return value

Both functions 0 for OK, ggiSetGCClipping returns a ggi-error(3).

Releases

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

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From libggi2-dev 1:2.2.2-5 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.