Tao.Sdl SDK Documentation

Sdl.SDL_ActiveEvent Structure

Application visibility event structure.

For a list of all members of this type, see Sdl.SDL_ActiveEvent Members.

System.Object
   System.ValueType
      Tao.Sdl.Sdl.SDL_ActiveEvent

[Visual Basic]
Public Structure Sdl.SDL_ActiveEvent
[C#]
public struct Sdl.SDL_ActiveEvent

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

SDL_ActiveEvent is a member of the Sdl.SDL_Event union and is used when an event of type SDL_ACTIVEEVENT is reported.

When the mouse leaves or enters the window area a SDL_APPMOUSEFOCUS type activation event occurs, if the mouse entered the window then gain will be 1, otherwise gain will be 0. A SDL_APPINPUTFOCUS type activation event occurs when the application loses or gains keyboard focus. This usually occurs when another application is made active. Finally, a SDL_APPACTIVE type event occurs when the application is either minimised/iconified (gain=0) or restored.

Note: This event does not occur when an application window is first created.

Struct in SDL_events.h

            typedef struct{
            Uint8 type;
            Uint8 gain;
            Uint8 state;
            } SDL_ActiveEvent;
            

Requirements

Namespace: Tao.Sdl

Assembly: Tao.Sdl (in Tao.Sdl.dll)

See Also

Sdl.SDL_ActiveEvent Members | Tao.Sdl Namespace | Sdl.SDL_Event | SDL_GetAppState