Index

Package: Support

Description

package Support is

Subprograms & Entries

*

function "*"
( i: Integer;
f: Float )
return Float;

References:

support.ads:7:14 (declaration)
scaling.adb:54:31 (reference)
scaling.adb:55:32 (reference)
scaling.adb:183:41 (reference)
scaling.adb:184:42 (reference)
support.adb:17:14 (body)
support.adb:20:9 (label)
widgets-menu_items.adb:139:128 (reference)
widgets-menubars.adb:284:136 (reference)
widgets-scrollbars.adb:65:44 (reference)
widgets-scrollbars.adb:66:44 (reference)
widgets-scrollbars.adb:124:77 (reference)
widgets-scrollbars.adb:175:44 (reference)
widgets-scrollbars.adb:176:44 (reference)
widgets-scrollbars.adb:234:79 (reference)
widgets.adb:751:66 (reference)
widgets.adb:752:66 (reference)

Called by:

Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Widgets.Handle_Resize defined at widgets.ads:617:15
Widgets.Handle_Resize defined at widgets.ads:617:15
Widgets.Menu_Items.Get_Min_Height defined at widgets-menu_items.ads:107:14
Widgets.Menubars.Set_Parent defined at widgets-menubars.ads:75:15
Widgets.Scrollbars.Calculate_Button defined at widgets-scrollbars.ads:53:15
Widgets.Scrollbars.Calculate_Button defined at widgets-scrollbars.ads:70:15
Widgets.Scrollbars.Calculate_Button defined at widgets-scrollbars.ads:70:15
Widgets.Scrollbars.Calculate_Button defined at widgets-scrollbars.ads:53:15
Widgets.Scrollbars.Handle_Mouse_Move defined at widgets-scrollbars.ads:77:15
Widgets.Scrollbars.Handle_Mouse_Move defined at widgets-scrollbars.ads:60:15

*

function "*"
( f: Float;
i: Integer )
return Float;

References:

support.ads:9:14 (declaration)
allegro-truecolor.adb:71:35 (reference)
allegro-truecolor.adb:72:37 (reference)
allegro-truecolor.adb:73:36 (reference)
support.adb:25:14 (body)
support.adb:28:9 (label)
widgets.adb:1380:33 (reference)
widgets.adb:1381:33 (reference)

Called by:

Allegro.Truecolor.Hard_Contrast.Is_Dark.Luminance defined at allegro-truecolor.adb:66:22
Allegro.Truecolor.Hard_Contrast.Is_Dark.Luminance defined at allegro-truecolor.adb:66:22
Allegro.Truecolor.Hard_Contrast.Is_Dark.Luminance defined at allegro-truecolor.adb:66:22
Widgets.Translate_To_Window defined at widgets.ads:680:15
Widgets.Translate_To_Window defined at widgets.ads:680:15

/

function "/"
( i: Integer;
f: Float )
return Float;

References:

support.ads:11:14 (declaration)
support.adb:33:14 (body)
support.adb:36:9 (label)
widgets-containers.adb:191:55 (reference)
widgets-containers.adb:192:55 (reference)
widgets.adb:353:40 (reference)
widgets.adb:354:40 (reference)
widgets.adb:868:48 (reference)
widgets.adb:869:48 (reference)
widgets.adb:1312:49 (reference)
widgets.adb:1313:49 (reference)
widgets.adb:1367:38 (reference)
widgets.adb:1368:38 (reference)

Called by:

Widgets.Containers.Find_Widget defined at widgets-containers.ads:73:15
Widgets.Containers.Find_Widget defined at widgets-containers.ads:73:15
Widgets.Find_Widget defined at widgets.ads:525:15
Widgets.Find_Widget defined at widgets.ads:525:15
Widgets.Pack defined at widgets.ads:635:15
Widgets.Pack defined at widgets.ads:635:15
Widgets.Set_Zoom defined at widgets.ads:305:15
Widgets.Set_Zoom defined at widgets.ads:305:15
Widgets.Translate_To_Content defined at widgets.ads:675:15
Widgets.Translate_To_Content defined at widgets.ads:675:15

/

function "/"
( f: Float;
i: Integer )
return Float;

References:

support.ads:13:14 (declaration)
allegro-truecolor.adb:27:50 (reference)
support.adb:41:14 (body)
support.adb:44:9 (label)

Called by:

Allegro.Truecolor.Contrast.Luminance.R defined at allegro-truecolor.adb:25:22

-

function "-"
( f: Float;
i: Integer )
return Float;

References:

support.ads:15:14 (declaration)
physics-bodies.adb:269:50 (reference)
physics-bodies.adb:294:50 (reference)
support.adb:49:14 (body)
support.adb:52:9 (label)

Called by:

Physics.Bodies.Clip.Clip_Head defined at physics-bodies.adb:266:19
Physics.Bodies.Clip.Clip_Sides defined at physics-bodies.adb:291:19

-

function "-"
( i: Integer;
f: Float )
return Float;

References:

support.ads:17:14 (declaration)
support.adb:57:14 (body)
support.adb:60:9 (label)

+

function "+"
( f: Float;
i: Integer )
return Float;

References:

support.ads:19:14 (declaration)
physics-bodies.adb:184:52 (reference)
physics-bodies.adb:278:34 (reference)
physics-bodies.adb:311:30 (reference)
support.adb:65:14 (body)
support.adb:68:9 (label)

Called by:

Physics.Bodies.Clip.Clip_Feet defined at physics-bodies.adb:162:19
Physics.Bodies.Clip.Clip_Head defined at physics-bodies.adb:266:19
Physics.Bodies.Clip.Clip_Sides defined at physics-bodies.adb:291:19

+

function "+"
( i: Integer;
f: Float )
return Float;

References:

support.ads:21:14 (declaration)
support.adb:73:14 (body)
support.adb:76:9 (label)

**

function "**"
( l, r: Long_Float )
return Long_Float;

References:

support.ads:23:14 (declaration)
allegro-truecolor.adb:27:57 (reference)
support.ads:125:23 (body)

Called by:

Allegro.Truecolor.Contrast.Luminance.R defined at allegro-truecolor.adb:25:22

Constrain

function Constrain
( val, min, max: Float )
return Float;

References:

support.ads:25:14 (declaration)
physics-managers.adb:263:27 (reference)
physics-managers.adb:264:27 (reference)
physics-managers.adb:265:27 (reference)
physics-managers.adb:266:27 (reference)
physics-managers.adb:267:27 (reference)
support.adb:141:14 (body)
support.adb:150:9 (label)

Called by:

Physics.Managers.Handle defined at physics-managers.ads:117:15
Physics.Managers.Handle defined at physics-managers.ads:117:15
Physics.Managers.Handle defined at physics-managers.ads:117:15
Physics.Managers.Handle defined at physics-managers.ads:117:15
Physics.Managers.Handle defined at physics-managers.ads:117:15

Constrain

function Constrain
( val, min, max: Integer )
return Integer;

References:

support.ads:27:14 (declaration)
allegro-truecolor.adb:107:33 (reference)
applications.adb:329:22 (reference)
applications.adb:349:26 (reference)
applications.adb:350:26 (reference)
applications.adb:351:25 (reference)
applications.adb:352:25 (reference)
applications.adb:357:26 (reference)
applications.adb:358:26 (reference)
applications.adb:359:25 (reference)
applications.adb:360:25 (reference)
applications.adb:486:34 (reference)
applications.adb:487:34 (reference)
game_views.adb:53:46 (reference)
game_views.adb:55:49 (reference)
game_views.adb:240:47 (reference)
games.adb:56:46 (reference)
support.adb:155:14 (body)
support.adb:164:9 (label)

Called by:

Allegro.Truecolor.Make_Grey defined at allegro-truecolor.ads:75:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Game_Views.Construct defined at game_views.ads:110:15
Game_Views.Construct defined at game_views.ads:110:15
Game_Views.Set_Window defined at game_views.ads:55:15
Games.Construct defined at games.ads:79:15

Div_Ceil

function Div_Ceil
( a, b: Integer )
return Integer;

References:

support.ads:29:14 (declaration)
support.adb:169:14 (body)
support.adb:176:9 (label)
support.adb:177:20 (reference)

Floor

function Floor
( x: Float )
return Integer;

References:

support.ads:31:14 (declaration)
support.adb:286:14 (body)
support.adb:289:9 (label)
support.adb:290:20 (reference)
widgets.adb:868:36 (reference)
widgets.adb:869:36 (reference)
widgets.adb:1312:19 (reference)
widgets.adb:1313:19 (reference)

Called by:

Widgets.Pack defined at widgets.ads:635:15
Widgets.Pack defined at widgets.ads:635:15
Widgets.Set_Zoom defined at widgets.ads:305:15
Widgets.Set_Zoom defined at widgets.ads:305:15

Max

function Max
( a, b: Integer )
return Integer;

References:

support.ads:33:14 (declaration)
support.adb:330:14 (body)
support.adb:333:9 (label)

Max

function Max
( a, b: Float )
return Float;

References:

support.ads:35:14 (declaration)
support.adb:338:14 (body)
support.adb:341:9 (label)

Min

function Min
( a, b: Integer )
return Integer;

References:

support.ads:37:14 (declaration)
support.adb:346:14 (body)
support.adb:349:9 (label)

Min

function Min
( a, b: Float )
return Float;

References:

support.ads:39:14 (declaration)
support.adb:354:14 (body)
support.adb:357:9 (label)

&

function "&"
( l: String;
r: Unbounded_String )
return String;

References:

support.ads:43:14 (declaration)
support.adb:81:14 (body)
support.adb:84:9 (label)
worlds.adb:1093:66 (reference)

Called by:

Worlds.Object_Read defined at worlds.ads:274:15

Calls:

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

&

function "&"
( l: Unbounded_String;
r: String )
return String;

References:

support.ads:45:14 (declaration)
support.adb:89:14 (body)
support.adb:92:9 (label)

Calls:

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

Capitalize

function Capitalize
( str: String )
return String;

References:

support.ads:48:14 (declaration)
support.adb:97:14 (body)
support.adb:112:9 (label)
support.adb:278:20 (reference)
support.adb:280:20 (reference)
support.ads:49:27 (reference)

Calls:

Is_Alphanumeric defined at a-chahan.ads:57:13
To_Lower defined at a-chahan.ads:68:13
To_Upper defined at a-chahan.ads:65:13
Capitalizes the words in the string using a set of delimiters.

Case_Eq

function Case_Eq
( l, r: String )
return Boolean;

References:

support.ads:51:14 (declaration)
support.adb:116:14 (body)

Case_Eq

function Case_Eq
( l, r: Unbounded_String )
return Boolean;

References:

support.ads:53:14 (declaration)
support.adb:120:14 (body)
support.adb:123:9 (label)

Calls:

Equal_Case_Insensitive defined at a-secain.ads:32:22
To_String defined at a-strunb.ads:65:13

Case_Eq

function Case_Eq
( l: Unbounded_String;
r: String )
return Boolean;

References:

support.ads:55:14 (declaration)
support.adb:127:14 (body)
support.adb:130:9 (label)

Calls:

Equal_Case_Insensitive defined at a-secain.ads:32:22
To_String defined at a-strunb.ads:65:13

Case_Eq

function Case_Eq
( l: String;
r: Unbounded_String )
return Boolean;

References:

support.ads:57:14 (declaration)
support.adb:134:14 (body)
support.adb:137:9 (label)

Calls:

Equal_Case_Insensitive defined at a-secain.ads:32:22
To_String defined at a-strunb.ads:65:13

Ends_With

function Ends_With
( str: String;
ending: String )
return Boolean;

References:

support.ads:60:14 (declaration)
support-paths.adb:51:36 (reference)
support-paths.adb:65:12 (reference)
support.adb:181:14 (body)
support.adb:185:9 (label)
support.adb:186:20 (reference)
Returns True if 'str' ends with 'ending'. Comparison is case sensitive.

Iterate_Words

procedure Iterate_Words
( phrase: String;
examine: access procedure( word : String )
);

References:

support.ads:63:15 (declaration)
support.adb:190:15 (body)
support.adb:210:9 (label)
game_views-keen.adb:611:9 (reference)

Called by:

Game_Views.Keen.Set_Loading_Text defined at game_views-keen.ads:107:15
Iterate over words in a string separated by whitespace.

File_Length

function File_Length
( path: String )
return Long_Integer;

References:

support.ads:69:14 (declaration)
resources.adb:191:47 (reference)
support.adb:214:14 (body)
support.adb:224:9 (label)
support.ads:70:27 (reference)

Called by:

Resources.Load_From_Disk.Read_File defined at resources.adb:190:18

Calls:

Close defined at s-os_lib.ads:282:14
File_Length defined at s-os_lib.ads:407:13
Open_Read defined at s-os_lib.ads:192:13
Returns -1 if the file does not exist.

Source_Ref_To_Unit_Name

function Source_Ref_To_Unit_Name
( ref: String )
return String;

References:

support.ads:77:14 (declaration)
support.adb:228:14 (body)
support.adb:282:9 (label)

Calls:

Capitalize defined at support.ads:48:14
Index defined at a-strfix.ads:36:13
Support.Source_Ref_To_Unit_Name.Protected_Name defined at support.adb:234:18
Extracts a readable Ada unit name from a source reference line. If the source reference doesn't contain symbols then an empty string will be returned because the unit name can't be determined.

Contains

function Contains
( ax1, ay1, ax2, ay2, bx, by: Integer )
return Boolean;

References:

support.ads:82:14 (declaration)
support.adb:294:14 (body)
support.adb:297:9 (label)
support.adb:298:20 (reference)
widgets-menubars.adb:187:20 (reference)
widgets-menubars.adb:209:16 (reference)
widgets-menubars.adb:237:20 (reference)

Called by:

Widgets.Menubars.Handle_Mouse_Move defined at widgets-menubars.ads:66:15
Widgets.Menubars.Handle_Mouse_Move defined at widgets-menubars.ads:66:15
Widgets.Menubars.Handle_Mouse_Press defined at widgets-menubars.ads:69:15
Returns True if rectangle A contains point B.

Grid_Snap

function Grid_Snap
( point: Integer;
gridSize: Positive;
centered: Boolean := False )
return Integer;

References:

support.ads:87:14 (declaration)
support.adb:302:14 (body)
support.adb:317:9 (label)
support.adb:318:20 (reference)
Returns the value of 'point' as it would be snapped to a grid of size 'gridSize'. If 'centered' is True, the snap will occur in the middle of the grid lines instead of on them.

Intersect

function Intersect
( ax1, ay1, ax2, ay2, bx1, by1, bx2, by2: Integer )
return Boolean;

References:

support.ads:92:14 (declaration)
support.adb:322:14 (body)
support.adb:325:9 (label)
support.adb:326:20 (reference)
widgets-containers.adb:172:16 (reference)

Called by:

Widgets.Containers.Draw_Children.Examine defined at widgets-containers.adb:169:19
Returns True if rectangles A and B intersect.

Image

function Image
( i: Integer )
return String;

References:

support.ads:96:14 (declaration)
applications.adb:274:51 (reference)
applications.adb:274:79 (reference)
applications.adb:315:32 (reference)
applications.adb:381:40 (reference)
applications.adb:382:40 (reference)
applications.adb:383:40 (reference)
applications.adb:384:40 (reference)
applications.adb:385:40 (reference)
applications.adb:418:40 (reference)
applications.adb:419:40 (reference)
applications.adb:420:40 (reference)
applications.adb:421:40 (reference)
applications.adb:422:40 (reference)
font_api.adb:48:54 (reference)
game_views.adb:71:28 (reference)
scaling.adb:59:32 (reference)
scaling.adb:60:32 (reference)
scaling.adb:61:32 (reference)
scaling.adb:62:32 (reference)
scaling.adb:64:32 (reference)
scaling.adb:65:32 (reference)
support-real_time.adb:115:20 (reference)
support-real_time.adb:117:20 (reference)
support-real_time.adb:119:20 (reference)
support.adb:362:14 (body)
support.adb:365:9 (label)
themes.adb:208:59 (reference)
themes.adb:304:61 (reference)
tiles-indices.adb:377:45 (reference)
tiles-libraries-loading.adb:112:32 (reference)
values.adb:214:16 (reference)
worlds.adb:1005:73 (reference)
worlds.adb:1006:69 (reference)
game_views-keen.adb:577:73 (reference)
game_views-keen.adb:604:67 (reference)
game_views-keen.adb:621:54 (reference)
widgets-progress_boards.adb:63:63 (reference)
widgets-scoreboards.adb:39:63 (reference)

Called by:

Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Applications.Init defined at applications.ads:113:14
Font_API.Load_Font defined at font_api.ads:19:14
Game_Views.Delete defined at game_views.ads:112:15
Game_Views.Keen.Set_Loading_Text defined at game_views-keen.ads:107:15
Game_Views.Keen.Set_Loading_Text defined at game_views-keen.ads:107:15
Game_Views.Keen.Set_Loading_Text.Add_Word defined at game_views-keen.adb:585:19
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Scaling.Scale defined at scaling.ads:30:15
Support.Real_Time.Format defined at support-real_time.ads:49:14
Support.Real_Time.Format defined at support-real_time.ads:49:14
Support.Real_Time.Format defined at support-real_time.ads:49:14
Themes.Get_Font defined at themes.ads:80:14
Themes.Load_Font defined at themes.ads:166:14
Tiles.Indices.A_Tile_Index_Input defined at tiles-indices.ads:156:14
Tiles.Libraries.Loading.Loading_Task defined at tiles-libraries-loading.adb:93:15
Values.As_String defined at values.ads:100:14
Widgets.Progress_Boards.Construct defined at widgets-progress_boards.ads:145:15
Widgets.Scoreboards.Construct defined at widgets-scoreboards.ads:38:15
Worlds.A_World_Input defined at worlds.ads:290:14
Worlds.A_World_Input defined at worlds.ads:290:14

Calls:

Trim defined at a-strfix.ads:186:13

Image

function Image
( u: Unsigned_32 )
return String;

References:

support.ads:99:14 (declaration)
entities.adb:406:53 (reference)
support.adb:370:14 (body)
support.adb:373:9 (label)

Called by:

Entities.To_String defined at entities.ads:253:14

Calls:

Trim defined at a-strfix.ads:186:13

Image

function Image
( f: Float;
precision: Natural := 3 )
return String;

References:

support.ads:104:14 (declaration)
physics-bodies.adb:550:30 (reference)
physics-bodies.adb:550:58 (reference)
physics-managers.adb:146:32 (reference)
physics-managers.adb:147:32 (reference)
scaling.adb:63:32 (reference)
support.adb:378:14 (body)
support.adb:383:9 (label)
worlds.adb:884:32 (reference)
worlds.adb:884:52 (reference)

Calls:

Ada.Text_IO.Float_IO.Put defined at a-tiflio.ads:80:14
Trim defined at a-strfix.ads:186:13
Returns a string image of a floating point number, where 'precision' is the number of places after the decimal to render.