[ prev :: next :: up ] libggi-current (3)

Draw, put, and get a rectangle from a visual

Name

ggiDrawBox, ggiPutBox, ggiGetBox : Draw, put, and get a rectangle from a visual

Synopsis

#include <ggi/ggi.h>

int ggiDrawBox(ggi_visual_t vis, int x, int y, int w, int h);

int ggiPutBox(ggi_visual_t vis, int x, int y, int w, int h, void *buf);

int ggiGetBox(ggi_visual_t vis, int x, int y, int w, int h, void *buf);

Description

Draw, put, or get a rectangle at (:p:`x`, :p:`y`), extending :p:`w` pixels in the positive x direction and :p:`h` pixels in the positive y direction.

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1129); backlink

Unknown interpreted text role "p".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1129); backlink

Unknown interpreted text role "p".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1129); backlink

Unknown interpreted text role "p".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1129); backlink

Unknown interpreted text role "p".

The :p:`buf` parameter in Get/Put functions points to a buffer from which the pixels will be read, or to which they will be written (it must be correctly allocated), depending on the case. See ggiPackColors and ggiUnmapPixels functions for more on how to deal with pixels.

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1134); backlink

Unknown interpreted text role "p".

Return value

All three functions return 0 to indicate success.

See Also

:man:`ggiDrawHLine(3)`, :man:`ggiDrawVLine(3)`, :man:`ggiDrawLine(3)`, :man:`ggiMapColor(3)`, :man:`ggi_pixelformat(3)`

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1152); backlink

Unknown interpreted text role "man".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1152); backlink

Unknown interpreted text role "man".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1152); backlink

Unknown interpreted text role "man".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1152); backlink

Unknown interpreted text role "man".

System Message: ERROR/3 (../ggi-core/libggi/doc/libggi.txt, line 1152); backlink

Unknown interpreted text role "man".
 
[ prev :: next :: up ] libggi-current (3)
2006/11/09 16:51:02