gel.applet: Code cosmetics.

This commit is contained in:
Rod Kay
2023-04-20 15:11:21 +10:00
parent c69e792ddc
commit ac39003165

View File

@@ -31,6 +31,7 @@ is
end my_context_Setter; end my_context_Setter;
procedure my_Swapper procedure my_Swapper
is is
begin begin
@@ -38,6 +39,7 @@ is
end my_Swapper; end my_Swapper;
overriding overriding
procedure respond (Self : in out add_new_Sprite; to_Event : in lace.Event.item'Class) procedure respond (Self : in out add_new_Sprite; to_Event : in lace.Event.item'Class)
is is
@@ -58,6 +60,7 @@ is
end respond; end respond;
overriding overriding
function Name (Self : in add_new_Sprite) return String function Name (Self : in add_new_Sprite) return String
is is
@@ -116,6 +119,7 @@ is
end define; end define;
overriding overriding
procedure destroy (Self : in out Item) procedure destroy (Self : in out Item)
is is
@@ -181,6 +185,7 @@ is
end free; end free;
--------- ---------
--- Forge --- Forge
-- --
@@ -213,6 +218,7 @@ is
end Forge; end Forge;
-------------- --------------
--- Attributes --- Attributes
-- --
@@ -235,7 +241,6 @@ is
procedure add_new_World (Self : in out Item; Name : in String; procedure add_new_World (Self : in out Item; Name : in String;
space_Kind : in physics.space_Kind) space_Kind : in physics.space_Kind)
is is
@@ -267,7 +272,6 @@ is
function is_Open (Self : in Item) return Boolean function is_Open (Self : in Item) return Boolean
is is
begin begin
@@ -393,7 +397,6 @@ is
-------------- --------------
--- Operations --- Operations
-- --
@@ -418,8 +421,6 @@ is
procedure freshen (Self : in out Item) procedure freshen (Self : in out Item)
is is
use type gel.Dolly.view; use type gel.Dolly.view;
@@ -625,6 +626,7 @@ is
end respond; end respond;
overriding overriding
procedure respond (Self : in out key_release_Response; to_Event : in lace.Event.Item'Class) procedure respond (Self : in out key_release_Response; to_Event : in lace.Event.Item'Class)
is is
@@ -724,6 +726,7 @@ is
end enable_following_Dolly; end enable_following_Dolly;
-------------------------- --------------------------
--- Mouse Button Responses --- Mouse Button Responses
-- --
@@ -774,6 +777,7 @@ is
end respond; end respond;
type mouse_button_collision_Event is new gel.World.raycast_collision_Event with null record; type mouse_button_collision_Event is new gel.World.raycast_collision_Event with null record;
@@ -810,10 +814,10 @@ is
the_Context.is_Press := True; the_Context.is_Press := True;
the_Context.button_Id := the_Event.Button; the_Context.button_Id := the_Event.Button;
the_world_Info.World.cast_Ray (From => the_Camera.Site, the_world_Info.World.cast_Ray (From => the_Camera.Site,
To => Site_world_space, To => Site_world_space,
Observer => lace.Observer.view (Self.Applet.local_Subject_and_Observer), Observer => lace.Observer.view (Self.Applet.local_Subject_and_Observer),
Context => the_Context, Context => the_Context,
event_Kind => event_Kind); event_Kind => event_Kind);
end; end;
@@ -898,6 +902,7 @@ is
end respond; end respond;
-------------------------- --------------------------
--- Window Resize Response --- Window Resize Response
-- --
@@ -927,6 +932,7 @@ is
end respond; end respond;
--------- ---------
--- Mouse --- Mouse
-- --
@@ -975,6 +981,7 @@ is
end enable_Mouse; end enable_Mouse;
---------------- ----------------
--- Local Events --- Local Events
-- --
@@ -986,6 +993,7 @@ is
end local_Subject_and_Observer; end local_Subject_and_Observer;
function local_Subject (Self : access Item) return lace.Subject.view function local_Subject (Self : access Item) return lace.Subject.view
is is
begin begin
@@ -993,6 +1001,7 @@ is
end local_Subject; end local_Subject;
function local_Observer (Self : access Item) return lace.Observer.view function local_Observer (Self : access Item) return lace.Observer.view
is is
begin begin