text
stringlengths
0
234
Put_Line (File, " Dx, Dy : Fixed);");
Put_Line (File, "");
Put_Line (File, " with procedure Gesture_End");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Swipe_V1'Class;");
Put_Line (File, " Serial : Unsigned_32;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Cancelled : Boolean);");
elsif Name = "Pointer_Gesture_Pinch_V1" then
Put_Line (File, " with procedure Gesture_Begin");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Pinch_V1'Class;");
Put_Line (File, " Serial : Unsigned_32;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Surface : Client.Surface;");
Put_Line (File, " Fingers : Unsigned_32);");
Put_Line (File, "");
Put_Line (File, " with procedure Gesture_Update");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Pinch_V1'Class;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Dx, Dy : Fixed;");
Put_Line (File, " Scale : Fixed;");
Put_Line (File, " Rotation : Fixed);");
Put_Line (File, "");
Put_Line (File, " with procedure Gesture_End");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Pinch_V1'Class;");
Put_Line (File, " Serial : Unsigned_32;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Cancelled : Boolean);");
elsif Name = "Pointer_Gesture_Hold_V1" then
Put_Line (File, " with procedure Gesture_Begin");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Hold_V1'Class;");
Put_Line (File, " Serial : Unsigned_32;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Surface : Client.Surface;");
Put_Line (File, " Fingers : Unsigned_32);");
Put_Line (File, "");
Put_Line (File, " with procedure Gesture_End");
Put_Line (File, " (Gesture : in out Pointer_Gesture_Hold_V1'Class;");
Put_Line (File, " Serial : Unsigned_32;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Cancelled : Boolean);");
end if;
Generate_Suffix_Spec_Events (Name);
end Handle_Interface_Events_Pointer_Gestures;
procedure Handle_Interface_Common_Subprograms
(Interface_Tag : aliased Wayland_XML.Interface_Tag)
is
Name : constant String
:= Xml_Parser_Utils.Adaify_Name (Wayland_XML.Name (Interface_Tag));
begin
if Protocol_Name /= "client" or Name /= "Display" then
Generate_Spec_Destroy_Subprogram (Interface_Tag);
end if;
Generate_Spec_Utility_Functions (Name);
if Protocol_Name /= "client" or Name /= "Display" then
Generate_Spec_User_Data_Subprogram (Name);
end if;
end Handle_Interface_Common_Subprograms;
procedure Handle_Interface_Common_Events
(Interface_Tag : aliased Wayland_XML.Interface_Tag)
is
Name : constant String
:= Xml_Parser_Utils.Adaify_Name (Wayland_XML.Name (Interface_Tag));
begin
if not Exists_Events (Interface_Tag) then
return;
end if;
Generate_Prefix_Spec_Events;
Put_Line (File, " -- FIXME Add generic `with procedure`'s here");
Generate_Suffix_Spec_Events (Name);
end Handle_Interface_Common_Events;
begin
Iterate_Over_Interfaces (Handle_Interface_Common_Subprograms'Access);
if Protocol_Name = "client" then
Iterate_Over_Interfaces (Handle_Interface_Subprograms_Client'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Client'Access);
elsif Protocol_Name = "xdg_shell" then
Iterate_Over_Interfaces (Handle_Interface_Subprograms_Xdg_Shell'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Xdg_Shell'Access);
elsif Protocol_Name = "presentation_time" then
Iterate_Over_Interfaces (Handle_Interface_Subprograms_Presentation_Time'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Presentation_Time'Access);
elsif Protocol_Name = "viewporter" then
Iterate_Over_Interfaces (Handle_Interface_Subprograms_Viewporter'Access);
elsif Protocol_Name = "idle_inhibit_unstable_v1" then
Iterate_Over_Interfaces (Handle_Interface_Subprogram_Idle_Inhibit'Access);
elsif Protocol_Name = "xdg_decoration_unstable_v1" then
Iterate_Over_Interfaces (Handle_Interface_Subprogram_Xdg_Decoration'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Xdg_Decoration'Access);
elsif Protocol_Name = "relative_pointer_unstable_v1" then
Iterate_Over_Interfaces (Handle_Interface_Subprogram_Relative_Pointer'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Relative_Pointer'Access);
elsif Protocol_Name = "pointer_constraints_unstable_v1" then
Iterate_Over_Interfaces (Handle_Interface_Subprogram_Pointer_Constraints'Access);
Iterate_Over_Interfaces (Handle_Interface_Events_Pointer_Constraints'Access);