---
name: "ggiPutBox"
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/ggiDrawBox/3ggi"
---

# ggiPutBox(3ggi)

Draw, put, and get a rectangle from a visual

Part of [ggiDrawBox(3ggi)](/ggiDrawBox/3ggi.md).

## 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***);** .SH "DESCRIPTION"

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

## RETURN VALUE

All three functions return 0 to indicate success.

## SEE ALSO

[**ggiDrawHLine**(3)](/ggiDrawHLine/3.md), [**ggiDrawVLine**(3)](/ggiDrawVLine/3.md), \[XRef to GGIDRAWLINE\]
