Index

Package: Ked

Description

package Widgets.Containers.Scenes.Ked is

Classes

Ked_Scene

type Ked_Scene is new Scene with private;

Ancestors:

Primitive operations:

Construct (overriding Widgets.Containers.Scenes.Construct)
Delete (overriding Widgets.Containers.Scenes.Delete)
Draw_Layer
Draw_Layer_Overlay
Events.Listeners.To_String (Inherited)
Get_Active_Layer
Get_Target_Bounds
Handle_Entity_Created
Handle_Exit (overriding Widgets.Handle_Exit)
Handle_Mouse_Move
Handle_Mouse_Press
Handle_Mouse_Release (overriding Widgets.Handle_Mouse_Release)
Handle_New_World (overriding Widgets.Containers.Scenes.Handle_New_World)
Handle_Tile_Changed (overriding Widgets.Containers.Scenes.Handle_Tile_Changed)
Objects.Construct (Inherited)
Scroll_Increment
Set_Active_Layer
Set_Layer_Visible
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Containers.Apply_Container_Layout (Inherited)
Widgets.Containers.Bring_To_Front (Inherited)
Widgets.Containers.Draw (Inherited)
Widgets.Containers.Draw_Children (Inherited)
Widgets.Containers.Find_Widget (Inherited)
Widgets.Containers.Handle_Ancestor_Hidden (Inherited)
Widgets.Containers.Handle_Ancestor_Unhidden (Inherited)
Widgets.Containers.Pack (Inherited)
Widgets.Containers.Scenes.Add (Inherited)
Widgets.Containers.Scenes.Clear_Selection (Inherited)
Widgets.Containers.Scenes.Delete_Child (Inherited)
Widgets.Containers.Scenes.Delete_Children (Inherited)
Widgets.Containers.Scenes.Draw_Content (Inherited)
Widgets.Containers.Scenes.Draw_Layer (Inherited)
Widgets.Containers.Scenes.Draw_Layer_Overlay (Inherited)
Widgets.Containers.Scenes.Get_Min_Height (Inherited)
Widgets.Containers.Scenes.Get_Min_Width (Inherited)
Widgets.Containers.Scenes.Handle_Entity_Attribute_Changed (Inherited)
Widgets.Containers.Scenes.Handle_Entity_Created (Inherited)
Widgets.Containers.Scenes.Handle_Entity_Deleted (Inherited)
Widgets.Containers.Scenes.Handle_Entity_Moved (Inherited)
Widgets.Containers.Scenes.Handle_Entity_Resized (Inherited)
Widgets.Containers.Scenes.Handle_Event (Inherited)
Widgets.Containers.Scenes.Handle_Frame_Changed (Inherited)
Widgets.Containers.Scenes.Handle_Resize (Inherited)
Widgets.Containers.Scenes.Handle_World_Property_Changed (Inherited)
Widgets.Containers.Scenes.Remove (Inherited)
Widgets.Containers.Scenes.Set_Selection (Inherited)
Widgets.Containers.Scenes.Set_Target (Inherited)
Widgets.Containers.Scenes.Unselect (Inherited)
Widgets.Containers.Set_Zoom (Inherited)
Widgets.Get_Color (Inherited)
Widgets.Get_Process_Name (Inherited)
Widgets.Get_View (Inherited)
Widgets.Get_Window (Inherited)
Widgets.Handle_Blur (Inherited)
Widgets.Handle_Click (Inherited)
Widgets.Handle_Descendant_Hidden (Inherited)
Widgets.Handle_Descendant_Unhidden (Inherited)
Widgets.Handle_Disabled (Inherited)
Widgets.Handle_Enabled (Inherited)
Widgets.Handle_Enter (Inherited)
Widgets.Handle_Focus (Inherited)
Widgets.Handle_Hidden (Inherited)
Widgets.Handle_Key_Held (Inherited)
Widgets.Handle_Key_Press (Inherited)
Widgets.Handle_Key_Release (Inherited)
Widgets.Handle_Mouse_Held (Inherited)
Widgets.Handle_Mouse_Move (Inherited)
Widgets.Handle_Mouse_Press (Inherited)
Widgets.Handle_Mouse_Scroll (Inherited)
Widgets.Handle_Unhidden (Inherited)
Widgets.Set_Color (Inherited)
Widgets.Set_Dirty (Inherited)
Widgets.Set_Parent (Inherited)
Widgets.To_String (Inherited)
Widgets.Translate_To_Content (Inherited)
Widgets.Translate_To_Window (Inherited)
Zoom_Identity
Zoom_With_Focus

Types

A_Ked_Scene

type A_Ked_Scene is access all Ked_Scene'Class;

Subprograms & Entries

Create_Scene

function Create_Scene
( view: not null access Game_Views.Game_View'Class;
id: String ) return A_Ked_Scene;

Get_Active_Layer

function Get_Active_Layer
( this: access Ked_Scene ) return Natural;

Get_Target_Bounds

procedure Get_Target_Bounds
( this: access Ked_Scene;
x1, y1, x2, y2: out Float );
Gets a bounding box for the scene's target such that the target will always be in the center of the scene when it is within these bounds. This procedure is only called by the target when it updates its location.

Scroll_Increment

procedure Scroll_Increment
( this: access Ked_Scene;
dir: Cardinal_Direction );
Scrolls the scene view in the direction of 'dir' by one increment. The scroll increment size is controlled by the scene.scroll_speed preference.

Set_Active_Layer

procedure Set_Active_Layer
( this: access Ked_Scene;
layer: Positive );
Sets the active layer for editing tiles.

Set_Layer_Visible

procedure Set_Layer_Visible
( this: access Ked_Scene;
layer: Positive;
visible: Boolean );
Sets the visibility for a layer.

Zoom_Identity

procedure Zoom_Identity
( this: access Ked_Scene );
Resets the zoom factor to 1, keeping the scene focus centered.

Zoom_In

procedure Zoom_In
( this: access Ked_Scene );
Zooms in, keeping the scene focus centered.

Zoom_Out

procedure Zoom_Out
( this: access Ked_Scene );
Zooms out, keeping the scene focus centered.