File: ggiSetGCClipping.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 (31 lines) | stat: -rw-r--r-- 995 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
.\\" auto-generated by docbook2man-spec $Revision: 1.5 $
.TH "ggiSetGCClipping" "3ggi" "22 August 2001" "GGI" "LibGGI API"
.SH NAME
ggiSetGCClipping, ggiGetGCClipping \- Set or get the clipping rectangle for a visual
.SH SYNOPSIS
\fB#include <ggi/ggi.h>
.sp
int ggiSetGCClipping(ggi_visual_t \fIvis\fB, 
int \fIleft\fB, int \fItop\fB, 
int \fIright\fB, int \fIbottom\fB);
.sp
int ggiGetGCClipping(ggi_visual_t \fIvis\fB, 
int *\fIleft\fB, int *\fItop\fB, 
int *\fIright\fB, int *\fIbottom\fB);
\fR.SH "DESCRIPTION"
.PP
\fBggiSetGCClipping\fR sets the the current clipping rectangle to
(\fIleft\fR,\fItop\fR)-(\fIright\fR-1,\fIbottom\fR-1),
inclusive.
.PP
Initially the clipping rectangle is the whole virtual screen.
.PP
All LibGGI drawing primitives obey the clipping rectangle.
Negative coordinates given to LibGGI drawing functions will be 
clipped correctly.
.PP
\fBggiGetGCClipping\fR reads the coordinates of the current clipping
rectangle.
.SH "RETURN VALUE"
.PP
Both functions 0 for OK.