Index

Package: Windows

Description

package Widgets.Containers.Windows is

Classes

Window

type Window is new Container with private;

Ancestors:

Primitive operations:

Construct
Delete (overriding Widgets.Containers.Delete)
Dispatch_Click
Dispatch_Key_Held
Dispatch_Key_Press
Dispatch_Key_Release
Dispatch_Mouse_Held
Dispatch_Mouse_Move
Dispatch_Mouse_Press
Dispatch_Mouse_Release
Dispatch_Mouse_Release
Dispatch_Mouse_Scroll
Draw (overriding Widgets.Containers.Draw)
Draw_Content
Find_Widget (overriding Widgets.Containers.Find_Widget)
Get_Window (overriding Widgets.Get_Window)
Handle_Descendant_Hidden (overriding Widgets.Handle_Descendant_Hidden)
Handle_Descendant_Unhidden (overriding Widgets.Handle_Descendant_Unhidden)
Handle_Key_Press (overriding Widgets.Handle_Key_Press)
Objects.Construct (Inherited)
Pack (overriding Widgets.Containers.Pack)
Translate_To_Content (overriding Widgets.Translate_To_Content)
Translate_To_Window (overriding Widgets.Translate_To_Window)
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Construct (Inherited)
Widgets.Containers.Add (Inherited)
Widgets.Containers.Apply_Container_Layout (Inherited)
Widgets.Containers.Bring_To_Front (Inherited)
Widgets.Containers.Delete_Child (Inherited)
Widgets.Containers.Delete_Children (Inherited)
Widgets.Containers.Draw_Children (Inherited)
Widgets.Containers.Draw_Content (Inherited)
Widgets.Containers.Handle_Ancestor_Hidden (Inherited)
Widgets.Containers.Handle_Ancestor_Unhidden (Inherited)
Widgets.Containers.Handle_Resize (Inherited)
Widgets.Containers.Remove (Inherited)
Widgets.Containers.Set_Zoom (Inherited)
Widgets.Deactivate_Popup (Inherited)
Widgets.Get_Color (Inherited)
Widgets.Get_Min_Height (Inherited)
Widgets.Get_Min_Width (Inherited)
Widgets.Get_View (Inherited)
Widgets.Handle_Blur (Inherited)
Widgets.Handle_Click (Inherited)
Widgets.Handle_Enter (Inherited)
Widgets.Handle_Exit (Inherited)
Widgets.Handle_Focus (Inherited)
Widgets.Handle_Key_Held (Inherited)
Widgets.Handle_Key_Release (Inherited)
Widgets.Handle_Mouse_Held (Inherited)
Widgets.Handle_Mouse_Move (Inherited)
Widgets.Handle_Mouse_Press (Inherited)
Widgets.Handle_Mouse_Release (Inherited)
Widgets.Handle_Mouse_Scroll (Inherited)
Widgets.Set_Color (Inherited)
Widgets.Set_Dirty (Inherited)
Widgets.Set_Enabled (Inherited)
Widgets.Set_Focused (Inherited)
Widgets.Set_Parent (Inherited)
Widgets.Set_Visible (Inherited)
Widgets.To_String (Inherited)

Types

A_Window

type A_Window is access all Window'Class;

Subprograms & Entries

Create_Window

function Create_Window
( view: access Game_Views.Game_View'Class;
id: String;
width, height: Natural;
scale: Positive := 1;
filter: Filter_Type := Filter_Nearest ) return A_Window;

Dispatch_Click

procedure Dispatch_Click
( this: access Window;
evt: not null A_Mouse_Button_Event );

Dispatch_Key_Held

function Dispatch_Key_Held
( this: access Window;
evt: not null A_Key_Event ) return Boolean;

Dispatch_Key_Press

function Dispatch_Key_Press
( this: access Window;
evt: not null A_Key_Event ) return Boolean;

Dispatch_Key_Release

function Dispatch_Key_Release
( this: access Window;
evt: not null A_Key_Event ) return Boolean;

Dispatch_Mouse_Held

procedure Dispatch_Mouse_Held
( this: access Window;
evt: not null A_Mouse_Button_Event );

Dispatch_Mouse_Move

procedure Dispatch_Mouse_Move
( this: access Window;
evt: not null A_Mouse_Event );

Dispatch_Mouse_Press

procedure Dispatch_Mouse_Press
( this: access Window;
evt: not null A_Mouse_Button_Event );

Dispatch_Mouse_Release

procedure Dispatch_Mouse_Release
( this: access Window;
evt: not null A_Mouse_Button_Event );

Dispatch_Mouse_Scroll

function Dispatch_Mouse_Scroll
( this: access Window;
evt: not null A_Mouse_Scroll_Event ) return Boolean;

Draw

procedure Draw
( this: access Window;
bmp: not null A_Bitmap );

Get_Scale

function Get_Scale
( this: not null access Window'Class ) return Positive;

Give_Focus

procedure Give_Focus
( this: access Window;
target: not null A_Widget );

Pop_Popup

procedure Pop_Popup
( this: access Window );

Pop_Popup

procedure Pop_Popup
( this: access Window;
popup: not null A_Widget );
Pops all widgets from the popups stack until the given popup widget has been popped. If the widget isn't an active popup menu, nothing will happen.

Push_Popup

procedure Push_Popup
( this: access Window;
popup: not null A_Widget );
Pushes a popup widget onto the top of the popup stack for the window, making it visible. Popups are the highest in the Z-order, so they will be displayed in front of any modal widget, most recent on top. The widget will become a child of the window.

Set_Offset

procedure Set_Offset
( this: access Window;
x, y: Integer );
Sets the offset of the window from origin of the screen.

Set_Menubar

procedure Set_Menubar
( this: access Window;
menu: in out A_Menubar );

Set_Modal

procedure Set_Modal
( this: access Window;
modal: A_Widget );

Set_Title

procedure Set_Title
( this: access Window;
title: String );

Delete

procedure Delete
( this: in out A_Window );