---
name: "s3dw_focus"
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_focus"
---

# s3dw\_focus(3)

give widget focus

## NAME

s3dw\_focus - give widget focus

## SYNOPSIS

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

**void s3dw\_focus(s3dw\_widget \****focus***);**

## DESCRIPTION

Gives focus to the widget, relative to its parent. That means you can focus a surface, and each surface can focus one of its element, e.g. an input field. Should be casted with S3DWIDGET().

## AUTHOR

**Simon Wunderlich**

Author of s3d
