---
name: "SDL_ResizeEvent"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_ResizeEvent"
---

# SDL\_ResizeEvent(3)

Window resize event structure

## NAME

SDL\_ResizeEvent - Window resize event structure

## STRUCTURE DEFINITION

```
typedef struct{
  Uint8 type;
  int w, h;
} SDL_ResizeEvent;
```

## STRUCTURE DATA

- **type**

  **SDL\_VIDEORESIZE**

- **w**, **h**

  New width and height of the window

## DESCRIPTION

**SDL\_ResizeEvent** is a member of the **SDL\_Event** union and is used when an event of type **SDL\_VIDEORESIZE** is reported.

When **SDL\_RESIZABLE** is passed as a **flag** to **SDL\_SetVideoMode** the user is allowed to resize the applications window. When the window is resized an **SDL\_VIDEORESIZE** is report, with the new window width and height values stored in **w** and **h**, respectively. When an **SDL\_VIDEORESIZE** is received the window should be resized to the new dimensions using **SDL\_SetVideoMode**.

## SEE ALSO

**SDL\_Event**, **SDL\_SetVideoMode**
