ggiDrawVLine(3)

ggiDrawVLine3

Draw, put, and get a vertical line from a visual

Usage

#include <ggi/ggi.h>
int ggiDrawVLine(ggi_visual_t vis, int x, int y, int h);
int ggiPutVLine(ggi_visual_t vis, int x, int y, int h, const void *buf);
int ggiGetVLine(ggi_visual_t vis, int x, int y, int h, void *buf);

Overview

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), respectively. See ggiPackColors(3) and ggiUnmapPixel(3) functions for details on how to deal with pixels.

Return value

All three functions return 0 to indicate success.

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.