text
stringlengths
0
234
Put_Line (File, " with Pre => Object.Has_Proxy;");
end if;
end Handle_Interface_Subprogram_Xdg_Decoration;
procedure Handle_Interface_Events_Xdg_Decoration
(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;
if Name = "Toplevel_Decoration_V1" then
Put_Line (File, " with procedure Configure");
Put_Line (File, " (Decoration : in out Toplevel_Decoration_V1'Class;");
Put_Line (File, " Mode : Toplevel_Decoration_V1_Mode);");
end if;
Generate_Suffix_Spec_Events (Name);
end Handle_Interface_Events_Xdg_Decoration;
procedure Handle_Interface_Subprogram_Relative_Pointer
(Interface_Tag : aliased Wayland_XML.Interface_Tag)
is
Name : constant String
:= Xml_Parser_Utils.Adaify_Name (Wayland_XML.Name (Interface_Tag));
begin
if Name in "Relative_Pointer_Manager_V1" then
Generate_Spec_Bind_Subprogram (Name);
end if;
if Name = "Relative_Pointer_Manager_V1" then
Put_Line (File, "");
Put_Line (File, " procedure Get_Relative_Pointer");
Put_Line (File, " (Object : Relative_Pointer_Manager_V1;");
Put_Line (File, " Pointer : Client.Pointer'Class;");
Put_Line (File, " Relative : in out Relative_Pointer_V1'Class)");
Put_Line (File, " with Pre => Object.Has_Proxy and Pointer.Has_Proxy;");
elsif Name = "Relative_Pointer_V1" then
null;
end if;
end Handle_Interface_Subprogram_Relative_Pointer;
procedure Handle_Interface_Events_Relative_Pointer
(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;
if Name = "Relative_Pointer_V1" then
Put_Line (File, " with procedure Relative_Motion");
Put_Line (File, " (Pointer : in out Relative_Pointer_V1'Class;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Dx : Fixed;");
Put_Line (File, " Dy : Fixed;");
Put_Line (File, " Dx_Unaccel : Fixed;");
Put_Line (File, " Dy_Unaccel : Fixed);");
end if;
Generate_Suffix_Spec_Events (Name);
end Handle_Interface_Events_Relative_Pointer;
procedure Handle_Interface_Subprogram_Pointer_Constraints
(Interface_Tag : aliased Wayland_XML.Interface_Tag)
is
Name : constant String
:= Xml_Parser_Utils.Adaify_Name (Wayland_XML.Name (Interface_Tag));
begin
if Name in "Pointer_Constraints_V1" then
Generate_Spec_Bind_Subprogram (Name);
end if;
if Name = "Pointer_Constraints_V1" then
Put_Line (File, "");
Put_Line (File, " procedure Lock_Pointer");
Put_Line (File, " (Object : Pointer_Constraints_V1;");
Put_Line (File, " Surface : Client.Surface'Class;");
Put_Line (File, " Pointer : Client.Pointer'Class;");
Put_Line (File, " Region : Client.Region'Class;");
Put_Line (File, " Lifetime : Pointer_Constraints_V1_Lifetime;");
Put_Line (File, " Locked : in out Locked_Pointer_V1'Class)");
Put_Line (File, " with Pre => Object.Has_Proxy and Surface.Has_Proxy and Pointer.Has_Proxy;");
Put_Line (File, "");
Put_Line (File, " procedure Confine_Pointer");
Put_Line (File, " (Object : Pointer_Constraints_V1;");
Put_Line (File, " Surface : Client.Surface'Class;");
Put_Line (File, " Pointer : Client.Pointer'Class;");
Put_Line (File, " Region : Client.Region'Class;");
Put_Line (File, " Lifetime : Pointer_Constraints_V1_Lifetime;");
Put_Line (File, " Confined : in out Confined_Pointer_V1'Class)");