---
name: "SDL_GetWindowFlags"
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_GetWindowFlags"
---

# SDL\_GetWindowFlags(3)

Get the window flags.

## NAME

SDL\_GetWindowFlags - Get the window flags.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

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

**SDL\_WindowFlags SDL\_GetWindowFlags(SDL\_Window \*window);**

## FUNCTION PARAMETERS

- *window*

  the window to query.

## RETURN VALUE

( **SDL\_WindowFlags** ) Returns a mask of the

**SDL\_WindowFlags**\
  associated with **window** .

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateWindow**(3)](/SDL_CreateWindow/3.md), **•**(3), [**SDL\_HideWindow**(3)](/SDL_HideWindow/3.md), **•**(3), [**SDL\_MaximizeWindow**(3)](/SDL_MaximizeWindow/3.md), **•**(3), [**SDL\_MinimizeWindow**(3)](/SDL_MinimizeWindow/3.md), **•**(3), [**SDL\_SetWindowFullscreen**(3)](/SDL_SetWindowFullscreen/3.md), **•**(3), [**SDL\_SetWindowMouseGrab**(3)](/SDL_SetWindowMouseGrab/3.md), **•**(3), [**SDL\_ShowWindow**(3)](/SDL_ShowWindow/3.md)
