Index

Package: Application

Description

package Events.Application is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Constants & Global variables

APP_BLUR_ID (Events.Event_Id)

APP_BLUR_ID : constant Event_Id := To_Event_Id( "App_Blur" );
A notification that the application window has lost focus.

APP_FOCUS_ID (Events.Event_Id)

APP_FOCUS_ID : constant Event_Id := To_Event_Id( "App_Focus" );
A notification that the application window has regained focus.

CLOSE_WINDOW_ID (Events.Event_Id)

CLOSE_WINDOW_ID : constant Event_Id := To_Event_Id( "Close_Window" );
A notification that the user is attempting to close the window of the application. This does not have to be acted on, for instance, if the player hasn't saved his game yet.

EXIT_APPLICATION_ID (Events.Event_Id)

EXIT_APPLICATION_ID  : constant Event_Id := To_Event_Id( "Exit_Application" );
A command to close the application, no questions asked. This event is queued when it's time for the application to quit.

Subprograms & Entries

Queue_App_Blur

procedure Queue_App_Blur;
Queues an App_Blur_Event.

Queue_App_Focus

procedure Queue_App_Focus;
Queues an App_Focus_Event.

Queue_Close_Window

procedure Queue_Close_Window;
Queues a Close_Window_Event.

Queue_Exit_Application

procedure Queue_Exit_Application;
Queues a Exit_Application_Event.