Name
ggiDrawHLine, ggiPutHLine, ggiGetHLine — Draw, put, and get a horizontal line from a visual
Synopsis
#include <ggi/ggi.h>
int ggiDrawHLine( | vis, | |
| x, | |
| y, | |
| w) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | w; |
int ggiPutHLine( | vis, | |
| x, | |
| y, | |
| w, | |
| buf) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | w; |
void * | buf; |
int ggiGetHLine( | vis, | |
| x, | |
| y, | |
| w, | |
| buf) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | w; |
void * | buf; |
Description
Draw, put, or get a horizontal line from
(x,y), extending
w pixels in the positive x direction (normally
right). The height is one pixel.
The *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.
Return value
All three functions return 0 to
indicate success.