---
name: "ggiDrawHLine"
section: "3ggi"
platform: "linux"
package: "libggi2-dev"
version: "1:2.0.1-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/ggiDrawHLine/3ggi"
---

# ggiDrawHLine(3ggi)

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

## NAME

ggiDrawHLine, ggiPutHLine, ggiGetHLine - Draw, put, and get a horizontal line from a visual

## SYNOPSIS

**#include \<ggi/ggi.h\>**

**int ggiDrawHLine(ggi\_visual\_t** *vis***, int** *x***, int** *y***, int** *w***);**

**int ggiPutHLine(ggi\_visual\_t** *vis***, int** *x***, int** *y***, int** *w***, void \****buf***);**

**int ggiGetHLine(ggi\_visual\_t** *vis***, int** *x***, int** *y***, int** *w***, void \****buf***);** .SH "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.

## RETURN VALUE

All three functions return 0 to indicate success.

## SEE ALSO

\[XRef to GGIDRAWVLINE\], \[XRef to GGIDRAWBOX\], \[XRef to GGIDRAWLINE\]
