Index

Package: Screen_Managers

Description

package Widgets.Containers.Screen_Managers 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.

Classes

Screen_Manager

type Screen_Manager is new Container and Animated with private;

Ancestors:

Primitive operations:

Activate_Popup (Inherited)
Add_Child (Inherited)
Apply_Container_Layout (Inherited)
Bring_To_Front (Inherited)
Bring_To_Front (Inherited)
Construct (overriding Construct)
Construct (Inherited)
Delete (Inherited)
Delete_Child (Inherited)
Delete_Children (Inherited)
Draw (Inherited)
Draw_Children (Inherited)
Draw_Content
Draw_Content (Inherited)
Find_Widget_At (Inherited)
Get_Color (Inherited)
Get_Min_Height (Inherited)
Get_Min_Width (Inherited)
Get_Process_Name (Inherited)
Get_Process_Name (Inherited)
Get_View (Inherited)
Get_Window (Inherited)
Give_Focus (Inherited)
Handle_Blur (Inherited)
Handle_Click (Inherited)
Handle_Descendant_Shown (Inherited)
Handle_Disabled (Inherited)
Handle_Enabled (Inherited)
Handle_Enter (Inherited)
Handle_Exit (Inherited)
Handle_Focus (Inherited)
Handle_Key_Held (Inherited)
Handle_Key_Press (Inherited)
Handle_Key_Release (Inherited)
Handle_Mouse_Held (Inherited)
Handle_Mouse_Move (Inherited)
Handle_Mouse_Press (Inherited)
Handle_Mouse_Release (Inherited)
Handle_Mouse_Scroll (Inherited)
Handle_Resize (Inherited)
Handle_Rooted (Inherited)
Handle_Shown (overriding Handle_Shown)
Is_Rooted (Inherited)
Is_Showing (Inherited)
Pack (Inherited)
Remove_Child (Inherited)
Set_Color (Inherited)
Set_Dirty (Inherited)
Set_Parent (Inherited)
Set_Zoom (Inherited)
Tick (Inherited)
Tick
To_String (Inherited)
Translate_To_Content (Inherited)
Translate_To_Window (Inherited)
A Screen_Manager manages a collection of Game_Screens as a stack, displaying the top screen. A Game_Screen obscures the screens beneath it unless it is a lightweight popup screen that is intended to have a transparent background.

Types

A_Screen_Manager

type A_Screen_Manager is access all Screen_Manager'Class;

Subprograms & Entries

Create_Screen_Manager

function Create_Screen_Manager
( view: not null access Game_Views.Game_View'Class;
id: String ) return A_Screen_Manager;
Creates a new, empty screen manager.

Add_Screen

procedure Add_Screen
( this: not null access Screen_Manager'Class;
screen: in out A_Game_Screen );
Adds a new screen to the top of the screen stack, activating it. If the screen is a popup, then the screen(s) beneath it will remain visible. Otherwise 'screen' will obscure the current top screen and the currently active screen(s) will be deactivated. 'screen' will be consumed.