---
name: "s3dw_textbox_new"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3dw_textbox_new"
---

# s3dw\_textbox\_new(3)

create a new textbox in the surface

## NAME

s3dw\_textbox\_new - create a new textbox in the surface

## SYNOPSIS

```
#include <s3dw.h>
```

**s3dw\_textbox \*s3dw\_textbox\_new(const s3dw\_surface \****surface***, const char \****text***, float** *posx***, float** *posy***, float** *width***, float** *height***);**

## DESCRIPTION

Creates a new textbox on the surface, with "text" written on it and the upper left corner at (posx,posy) on the surface. Width and height define the size of the textbox including scrollbars which are rendered around the textfield.

See s3dw\_textbox for information about callbacks which may be defined.

## AUTHOR

**Simon Wunderlich**

Author of s3d
