Index

Package: Widgets.Input_Boxes

Description

package Widgets.Input_Boxes is

Classes

Input_Action

type Input_Action is new Action with private;

Ancestors:

Primitive operations:

Actions.Construct (Inherited)

References:

widgets-input_boxes.ads:7:10 (declaration)
widgets-input_boxes.adb:134:40 (reference)
widgets-input_boxes.adb:519:59 (reference)
widgets-input_boxes.ads:8:39 (reference)
widgets-input_boxes.ads:73:10 (full declaration)

Input_Box

type Input_Box is new Widget with private;

Ancestors:

Primitive operations:

Add_Listener
Add_Listener
Construct (overriding Widgets.Construct)
Dispatch_Action
Draw_Content (overriding Widgets.Draw_Content)
Handle_Key_Held (overriding Widgets.Handle_Key_Held)
Handle_Key_Press (overriding Widgets.Handle_Key_Press)
Handle_Key_Release (overriding Widgets.Handle_Key_Release)
Handle_Mouse_Press (overriding Widgets.Handle_Mouse_Press)
Objects.Construct (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Pack (overriding Widgets.Pack)
Remove_Listener
Set_Constraint
Set_Max_Length
Widgets.Activate_Popup (Inherited)
Widgets.Adjust (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Deactivate_Popup (Inherited)
Widgets.Delete (Inherited)
Widgets.Draw (Inherited)
Widgets.Find_Widget (Inherited)
Widgets.Get_Color (Inherited)
Widgets.Get_Min_Height (Inherited)
Widgets.Get_Min_Width (Inherited)
Widgets.Get_View (Inherited)
Widgets.Get_Window (Inherited)
Widgets.Handle_Ancestor_Hidden (Inherited)
Widgets.Handle_Ancestor_Unhidden (Inherited)
Widgets.Handle_Blur (Inherited)
Widgets.Handle_Click (Inherited)
Widgets.Handle_Descendant_Hidden (Inherited)
Widgets.Handle_Descendant_Unhidden (Inherited)
Widgets.Handle_Enter (Inherited)
Widgets.Handle_Exit (Inherited)
Widgets.Handle_Focus (Inherited)
Widgets.Handle_Mouse_Held (Inherited)
Widgets.Handle_Mouse_Move (Inherited)
Widgets.Handle_Mouse_Release (Inherited)
Widgets.Handle_Mouse_Scroll (Inherited)
Widgets.Handle_Resize (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.Set_Zoom (Inherited)
Widgets.To_String (Inherited)
Widgets.Translate_To_Content (Inherited)
Widgets.Translate_To_Window (Inherited)

References:

widgets-input_boxes.ads:34:10 (declaration)
widgets-input_boxes.adb:26:35 (reference)
widgets-input_boxes.adb:38:53 (reference)
widgets-input_boxes.adb:59:47 (reference)
widgets-input_boxes.adb:68:46 (reference)
widgets-input_boxes.adb:77:59 (reference)
widgets-input_boxes.adb:118:40 (reference)
widgets-input_boxes.adb:133:46 (reference)
widgets-input_boxes.adb:149:52 (reference)
widgets-input_boxes.adb:169:49 (reference)
widgets-input_boxes.adb:186:48 (reference)
widgets-input_boxes.adb:194:43 (reference)
widgets-input_boxes.adb:229:38 (reference)
widgets-input_boxes.adb:237:45 (reference)
widgets-input_boxes.adb:297:46 (reference)
widgets-input_boxes.adb:343:48 (reference)
widgets-input_boxes.adb:375:49 (reference)
widgets-input_boxes.adb:395:51 (reference)
widgets-input_boxes.adb:436:35 (reference)
widgets-input_boxes.adb:445:50 (reference)
widgets-input_boxes.adb:454:51 (reference)
widgets-input_boxes.adb:473:45 (reference)
widgets-input_boxes.adb:488:39 (reference)
widgets-input_boxes.ads:35:36 (reference)
widgets-input_boxes.ads:42:47 (reference)
widgets-input_boxes.ads:45:46 (reference)
widgets-input_boxes.ads:48:38 (reference)
widgets-input_boxes.ads:50:50 (reference)
widgets-input_boxes.ads:53:51 (reference)
widgets-input_boxes.ads:56:45 (reference)
widgets-input_boxes.ads:58:39 (reference)
widgets-input_boxes.ads:96:10 (full declaration)
widgets-input_boxes.ads:112:53 (reference)
widgets-input_boxes.ads:115:59 (reference)
widgets-input_boxes.ads:117:40 (reference)
widgets-input_boxes.ads:122:46 (reference)
widgets-input_boxes.ads:124:52 (reference)
widgets-input_boxes.ads:126:49 (reference)
widgets-input_boxes.ads:128:48 (reference)
widgets-input_boxes.ads:130:43 (reference)
widgets-input_boxes.ads:132:45 (reference)
widgets-input_boxes.ads:135:46 (reference)
widgets-input_boxes.ads:138:48 (reference)
widgets-input_boxes.ads:141:49 (reference)
widgets-input_boxes.ads:144:51 (reference)
widgets-input_boxes.ads:146:35 (reference)

Types

A_Input_Action

type A_Input_Action is access all Input_Action'Class;

References:

widgets-input_boxes.ads:8:10 (declaration)
widgets-input_boxes.adb:134:18 (reference)
widgets-input_boxes.adb:511:39 (reference)
widgets-input_boxes.adb:518:37 (reference)
widgets-input_boxes.adb:519:79 (reference)
widgets-input_boxes.ads:19:39 (reference)
widgets-input_boxes.ads:22:36 (reference)
widgets-input_boxes.ads:77:37 (reference)
widgets-input_boxes.ads:92:39 (reference)

Input_Listener (abstract)

type Input_Listener is limited interface and Action_Listener;
This is the interface to implement in order to listen to input actions. When an input action occurs, the listener will be notified of the type of action performed and the input box that performed the action.

A_Input_Listener

type A_Input_Listener is access all Input_Listener'Class;

References:

widgets-input_boxes.ads:16:10 (declaration)
widgets-input_boxes.adb:60:49 (reference)
widgets-input_boxes.adb:70:29 (reference)
widgets-input_boxes.adb:138:13 (reference)
widgets-input_boxes.adb:446:52 (reference)
widgets-input_boxes.adb:500:75 (reference)
widgets-input_boxes.adb:504:16 (reference)
widgets-input_boxes.ads:43:49 (reference)
widgets-input_boxes.ads:51:52 (reference)
widgets-input_boxes.ads:88:75 (reference)

A_Input_Handler

type A_Input_Handler is
        access procedure( action : A_Input_Action );

References:

widgets-input_boxes.ads:21:10 (declaration)
widgets-input_boxes.adb:69:48 (reference)
widgets-input_boxes.adb:500:50 (reference)
widgets-input_boxes.ads:46:48 (reference)
widgets-input_boxes.ads:84:23 (reference)
widgets-input_boxes.ads:88:50 (reference)

A_Constrain_Func

type A_Constrain_Func is
        access function( curstr, newstr : String ) return String;

References:

widgets-input_boxes.ads:29:10 (declaration)
widgets-input_boxes.adb:455:44 (reference)
widgets-input_boxes.ads:54:44 (reference)
widgets-input_boxes.ads:107:25 (reference)
the returned string is constrained according to the function's logic curstr: the current value newstr: the new value to constrain

A_Input_Box

type A_Input_Box is access all Input_Box'Class;

References:

widgets-input_boxes.ads:35:10 (declaration)
widgets-input_boxes.adb:25:55 (reference)
widgets-input_boxes.adb:26:16 (reference)
widgets-input_boxes.ads:38:55 (reference)

Constants & Global variables

Entered (Actions.Action_Id)

Entered : constant Action_Id;

References:

widgets-input_boxes.ads:10:5 (declaration)
widgets-input_boxes.adb:188:31 (reference)
widgets-input_boxes.ads:75:5 (full declaration)

Subprograms & Entries

Handle_Action (abstract)

procedure Handle_Action
( this: access Input_Listener;
action: A_Input_Action )
is abstract;

References:

widgets-input_boxes.ads:18:15 (declaration)
widgets-input_boxes.adb:138:40 (dispatching call)

Called by:

Widgets.Input_Boxes.Dispatch_Action.Dispatch defined at widgets-input_boxes.adb:136:19

Create_Input_Box

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

References:

widgets-input_boxes.ads:37:14 (declaration)
widgets-input_boxes.adb:24:14 (body)
widgets-input_boxes.adb:34:9 (label)
widgets-input_boxes.ads:40:27 (reference)

Calls:

Construct defined at widgets-input_boxes.ads:117:15
Widgets.Delete defined at widgets.ads:685:15

Add_Listener

procedure Add_Listener
( this: access Input_Box;
listener: not null A_Input_Listener );

References:

widgets-input_boxes.ads:42:15 (declaration)
widgets-input_boxes.adb:59:15 (body)
widgets-input_boxes.adb:63:9 (label)
widgets-input_boxes.adb:72:14 (reference)

Calls:

Widgets.Add_Listener defined at widgets.ads:486:15

Add_Listener

procedure Add_Listener
( this: access Input_Box;
handler: not null A_Input_Handler );

References:

widgets-input_boxes.ads:45:15 (declaration)
widgets-input_boxes.adb:68:15 (body)
widgets-input_boxes.adb:73:9 (label)

Calls:

Add_Listener defined at widgets-input_boxes.ads:42:15
Create_Listener defined at widgets-input_boxes.ads:88:14

Get_Text

function Get_Text
( this: access Input_Box )
return String;

References:

widgets-input_boxes.ads:48:14 (declaration)
widgets-input_boxes.adb:229:14 (body)
widgets-input_boxes.adb:232:9 (label)

Calls:

To_String defined at a-strunb.ads:65:13

Remove_Listener

procedure Remove_Listener
( this: access Input_Box;
listener: not null A_Input_Listener );

References:

widgets-input_boxes.ads:50:15 (declaration)
widgets-input_boxes.adb:445:15 (body)
widgets-input_boxes.adb:449:9 (label)

Calls:

Widgets.Remove_Listener defined at widgets.ads:646:15

Set_Constraint

procedure Set_Constraint
( this: access Input_Box;
constraint: A_Constrain_Func );

References:

widgets-input_boxes.ads:53:15 (declaration)
widgets-input_boxes.adb:454:15 (body)
widgets-input_boxes.adb:468:9 (label)

Calls:

Adjust_Visible_Text defined at widgets-input_boxes.ads:115:15
Length defined at a-strunb.ads:49:13
To_String defined at a-strunb.ads:65:13
To_Unbounded_String defined at a-strunb.ads:59:13
Widgets.Input_Boxes.Unconstrained defined at widgets-input_boxes.adb:16:14
Widgets.Set_Dirty defined at widgets.ads:662:15

Set_Max_Length

procedure Set_Max_Length
( this: access Input_Box;
maxlen: Positive );

References:

widgets-input_boxes.ads:56:15 (declaration)
widgets-input_boxes.adb:473:15 (body)
widgets-input_boxes.adb:483:9 (label)

Calls:

Adjust_Visible_Text defined at widgets-input_boxes.ads:115:15
Length defined at a-strunb.ads:49:13
Unbounded_Slice defined at a-strunb.ads:118:13

Set_Text

procedure Set_Text
( this: access Input_Box;
text: String );

References:

widgets-input_boxes.ads:58:15 (declaration)
widgets-input_boxes.adb:488:15 (body)
widgets-input_boxes.adb:496:9 (label)

Calls:

Adjust_Visible_Text defined at widgets-input_boxes.ads:115:15
Length defined at a-strunb.ads:49:13
To_String defined at a-strunb.ads:65:13
To_Unbounded_String defined at a-strunb.ads:59:13
Widgets.Set_Dirty defined at widgets.ads:662:15