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

NAME

6       SDL_ActiveEvent - Application visibility event structure
7

STRUCTURE DEFINITION

9       typedef struct{
10         Uint8 type;
11         Uint8 gain;
12         Uint8 state;
13       } SDL_ActiveEvent;
14

STRUCTURE DATA

16       type                SDL_ACTIVEEVENT.
17
18       gain                0 if the event is a loss or 1 if it is a gain.
19
20       state               SDL_APPMOUSEFOCUS  if  mouse  focus  was  gained or
21                           lost, SDL_APPINPUTFOCUS if input focus  was  gained
22                           or  lost,  or  SDL_APPACTIVE if the application was
23                           iconified (gain=0) or restored(gain=1).
24

DESCRIPTION

26       SDL_ActiveEvent is a member of the SDL_Event union and is used when  an
27       event of type SDL_ACTIVEEVENT is reported.
28
29       When  the  mouse  leaves  or enters the window area a SDL_APPMOUSEFOCUS
30       type activation event occurs, if the mouse entered the window then gain
31       will  be  1, otherwise gain will be 0. A SDL_APPINPUTFOCUS type activa‐
32       tion event occurs when the application loses or gains  keyboard  focus.
33       This usually occurs when another application is made active. Finally, a
34       SDL_APPACTIVE type event occurs when the  application  is  either  min‐
35       imised/iconified (gain=0) or restored.
36
37              Note:
38
39              This  event  does  not occur when an application window is first
40              created.
41

SEE ALSO

43       SDL_Event, SDL_GetAppState
44
45
46
47SDL                         Tue 11 Sep 2001, 22:59          SDL_ActiveEvent(3)
Impressum