Penguin
Blame: SDL_ActiveEvent(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_ActiveEvent(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!ActiveEvent
2 !!!SDL_!ActiveEvent
1 perry 3 NAME
4 STRUCTURE DEFINITION
5 STRUCTURE DATA
6 DESCRIPTION
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!ActiveEvent- Application visibility event structure
1 perry 13 !!STRUCTURE DEFINITION
14
15
16 typedef struct{
17 Uint8 type;
18 Uint8 gain;
19 Uint8 state;
2 perry 20 } SDL_!ActiveEvent;
1 perry 21 !!STRUCTURE DATA
22
23
24 __type SDL_ACTIVEEVENT.__
25
26
27 __gain__ 0 if the event is a loss or 1 if it is a
28 gain.
29
30
31 __state SDL_APPMOUSEFOCUS__ if mouse focus was gained or
32 lost, __SDL_APPINPUTFOCUS__ if input focus was gained or
33 lost, or __SDL_APPACTIVE__ if the application was
34 iconified (__gain__=0) or
35 restored(__gain__=1).
36 !!DESCRIPTION
37
38
2 perry 39 __SDL_!ActiveEvent__ is a member of the __SDL_Event__
1 perry 40 union and is used when an event of type
41 __SDL_ACTIVEEVENT__ is reported.
42
43
44 When the mouse leaves or enters the window area a
45 __SDL_APPMOUSEFOCUS__ type activation event occurs, if
46 the mouse entered the window then __gain__ will be 1,
47 otherwise __gain__ will be 0. A __SDL_APPINPUTFOCUS__
48 type activation event occurs when the application loses or
49 gains keyboard focus. This usually occurs when another
50 application is made active. Finally, a __SDL_APPACTIVE__
51 type event occurs when the application is either
52 minimised/iconified (__gain__=0) or
53 restored.
54
55
56 __Note:__
57
58
59 This event does not occur when an application window is
60 first created.
61 !!SEE ALSO
62
63
2 perry 64 __SDL_Event__, __SDL_!GetAppState__
1 perry 65 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.