Name
ggiDrawVLine, ggiPutVLine, ggiGetVLine — Draw, put, and get a vertical line from a visual
Synopsis
#include <ggi/ggi.h>
int ggiDrawVLine( | vis, | |
| x, | |
| y, | |
| h) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | h; |
int ggiPutVLine( | vis, | |
| x, | |
| y, | |
| h, | |
| buf) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | h; |
void * | buf; |
int ggiGetVLine( | vis, | |
| x, | |
| y, | |
| h, | |
| buf) ; | |
ggi_visual_t | vis; |
int | x; |
int | y; |
int | h; |
void * | buf; |
Description
Draw, put, or get a vertical line from
(x,y), extending
h pixels in the positive y direction (normally
down). The width of the line 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.