text
stringlengths
0
234
Put_Line (File, " (Presentation : in out Presentation_Time.Presentation'Class;");
Put_Line (File, " Id : Unsigned_32);");
elsif Name = "Presentation_Feedback" then
Put_Line (File, " with procedure Synchronized_Output");
Put_Line (File, " (Presentation_Feedback : in out Presentation_Time.Presentation_Feedback'Class;");
Put_Line (File, " Output : Protocols.Client.Output'Class);");
Put_Line (File, "");
Put_Line (File, " with procedure Presented");
Put_Line (File, " (Presentation_Feedback : in out Presentation_Time.Presentation_Feedback'Class;");
Put_Line (File, " Timestamp : Duration;");
Put_Line (File, " Refresh : Duration;");
Put_Line (File, " Counter : Unsigned_64;");
Put_Line (File, " Flags : Presentation_Feedback_Kind);");
Put_Line (File, "");
Put_Line (File, " with procedure Discarded");
Put_Line (File, " (Presentation_Feedback : in out Presentation_Time.Presentation_Feedback'Class);");
end if;
Generate_Suffix_Spec_Events (Name);
end Handle_Interface_Events_Presentation_Time;
procedure Handle_Interface_Subprograms_Viewporter
(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 "Viewporter" then
Generate_Spec_Bind_Subprogram (Name);
end if;
if Name = "Viewporter" then
Put_Line (File, "");
Put_Line (File, " procedure Get_Viewport");
Put_Line (File, " (Object : Viewporter;");
Put_Line (File, " Surface : Client.Surface'Class;");
Put_Line (File, " Viewport : in out Protocols.Viewporter.Viewport'Class)");
Put_Line (File, " with Pre => Object.Has_Proxy and Surface.Has_Proxy;");
elsif Name = "Viewport" then
Put_Line (File, "");
Put_Line (File, " procedure Set_Source");
Put_Line (File, " (Object : Viewport;");
Put_Line (File, " X, Y, Width, Height : Fixed)");
Put_Line (File, " with Pre => (X = -1.0 and Y = -1.0 and Width = -1.0 and Height = -1.0)");
Put_Line (File, " or (Width > 0.0 and Height > 0.0 and X >= 0.0 and Y >= 0.0);");
Put_Line (File, "");
Put_Line (File, " procedure Set_Destination");
Put_Line (File, " (Object : Viewport;");
Put_Line (File, " Width, Height : Integer)");
Put_Line (File, " with Pre => (Width = -1 and Height = -1) or (Width > 0 and Height > 0);");
end if;
end Handle_Interface_Subprograms_Viewporter;
procedure Handle_Interface_Subprogram_Idle_Inhibit
(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 "Idle_Inhibit_Manager_V1" then
Generate_Spec_Bind_Subprogram (Name);
end if;
if Name = "Idle_Inhibit_Manager_V1" then
Put_Line (File, "");
Put_Line (File, " procedure Create_Inhibitor");
Put_Line (File, " (Object : Idle_Inhibit_Manager_V1;");
Put_Line (File, " Surface : Client.Surface'Class;");
Put_Line (File, " Inhibitor : in out Idle_Inhibitor_V1'Class)");
Put_Line (File, " with Pre => Object.Has_Proxy and Surface.Has_Proxy;");
elsif Name = "Idle_Inhibitor_V1" then
null;
end if;
end Handle_Interface_Subprogram_Idle_Inhibit;
procedure Handle_Interface_Subprogram_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 Name in "Decoration_Manager_V1" then
Generate_Spec_Bind_Subprogram (Name);
end if;
if Name = "Decoration_Manager_V1" then
Put_Line (File, "");
Put_Line (File, " procedure Get_Toplevel_Decoration");
Put_Line (File, " (Object : Decoration_Manager_V1;");
Put_Line (File, " Toplevel : Xdg_Shell.Xdg_Toplevel'Class;");
Put_Line (File, " Decoration : in out Toplevel_Decoration_V1'Class)");
Put_Line (File, " with Pre => Object.Has_Proxy and Toplevel.Has_Proxy;");
elsif Name = "Toplevel_Decoration_V1" then
Put_Line (File, "");
Put_Line (File, " procedure Set_Mode");
Put_Line (File, " (Object : Toplevel_Decoration_V1;");
Put_Line (File, " Mode : Toplevel_Decoration_V1_Mode)");
Put_Line (File, " with Pre => Object.Has_Proxy;");
Put_Line (File, "");
Put_Line (File, " procedure Unset_Mode (Object : Toplevel_Decoration_V1)");