1SDL_ResizeEvent(3)             SDL API Reference            SDL_ResizeEvent(3)
2
3
4

NAME

6       SDL_ResizeEvent- Window resize event structure
7

STRUCTURE DEFINITION

9       typedef struct{
10         Uint8 type;
11         int w, h;
12       } SDL_ResizeEvent;
13

STRUCTURE DATA

15       type                SDL_VIDEORESIZE
16
17       w, h                New width and height of the window
18

DESCRIPTION

20       SDL_ResizeEvent  is a member of the SDL_Event union and is used when an
21       event of type SDL_VIDEORESIZE is reported.
22
23       When SDL_RESIZABLE is passed as a flag to SDL_SetVideoMode the user  is
24       allowed  to  resize the applications window. When the window is resized
25       an SDL_VIDEORESIZE is report, with the new window width and height val‐
26       ues  stored  in  w  and  h,  respectively.  When  an SDL_VIDEORESIZE is
27       received the window should be  resized  to  the  new  dimensions  using
28       SDL_SetVideoMode.
29

SEE ALSO

31       SDL_Event, SDL_SetVideoMode
32
33
34
35SDL                         Tue 11 Sep 2001, 22:59          SDL_ResizeEvent(3)
Impressum