---
name: "s3dw_button_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_button_new"
---

# s3dw\_button\_new(3)

create a new button in the surface

## NAME

s3dw\_button\_new - create a new button in the surface

## SYNOPSIS

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

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

## DESCRIPTION

Creates a new button on the surface, with "text" written on it and the upper left corner at (posx,posy) on the surface.

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

## AUTHOR

**Simon Wunderlich**

Author of s3d
