---
name: "SDL_WINDOWPOS_CENTERED"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_WINDOWPOS_CENTERED"
---

# SDL\_WINDOWPOS\_CENTERED(3)

Used to indicate that the window position should be centered.

## NAME

SDL\_WINDOWPOS\_CENTERED - Used to indicate that the window position should be centered.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_WINDOWPOS\_CENTERED         SDL\_WINDOWPOS\_CENTERED\_DISPLAY(0)**

## DESCRIPTION

This always uses the primary display.

## AVAILABILITY

This macro is available since SDL 3.2.0.
