text stringlengths 0 234 |
|---|
Put_Line (File, " with Pre => Object.Has_Proxy and Seat.Has_Proxy;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Reposition"); |
Put_Line (File, " (Object : Xdg_Popup;"); |
Put_Line (File, " Positioner : Xdg_Shell.Xdg_Positioner'Class;"); |
Put_Line (File, " Token : Unsigned_32)"); |
Put_Line (File, " with Pre => Object.Has_Proxy and Positioner.Has_Proxy;"); |
end if; |
end Handle_Interface_Subprograms_Xdg_Shell; |
procedure Handle_Interface_Events_Xdg_Shell |
(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 = "Xdg_Wm_Base" then |
Put_Line (File, " with procedure Ping"); |
Put_Line (File, " (Xdg_Wm_Base : in out Xdg_Shell.Xdg_Wm_Base'Class;"); |
Put_Line (File, " Serial : Unsigned_32);"); |
elsif Name = "Xdg_Surface" then |
Put_Line (File, " with procedure Configure"); |
Put_Line (File, " (Xdg_Surface : in out Xdg_Shell.Xdg_Surface'Class;"); |
Put_Line (File, " Serial : Unsigned_32);"); |
elsif Name = "Xdg_Toplevel" then |
Put_Line (File, " with procedure Configure"); |
Put_Line (File, " (Xdg_Toplevel : in out Xdg_Shell.Xdg_Toplevel'Class;"); |
Put_Line (File, " Width : Natural;"); |
Put_Line (File, " Height : Natural;"); |
Put_Line (File, " States : State_Array);"); |
Put_Line (File, ""); |
Put_Line (File, " with procedure Close"); |
Put_Line (File, " (Xdg_Toplevel : in out Xdg_Shell.Xdg_Toplevel'Class) is null;"); |
Put_Line (File, ""); |
Put_Line (File, " with procedure Configure_Bounds"); |
Put_Line (File, " (Xdg_Toplevel : in out Xdg_Shell.Xdg_Toplevel'Class;"); |
Put_Line (File, " Width : Natural;"); |
Put_Line (File, " Height : Natural);"); |
Put_Line (File, ""); |
Put_Line (File, " with procedure Capabilities"); |
Put_Line (File, " (Xdg_Toplevel : in out Xdg_Shell.Xdg_Toplevel'Class;"); |
Put_Line (File, " Capabilities : Capability_Array);"); |
elsif Name = "Xdg_Popup" then |
Put_Line (File, " with procedure Configure"); |
Put_Line (File, " (Xdg_Popup : in out Xdg_Shell.Xdg_Popup'Class;"); |
Put_Line (File, " X, Y : Integer;"); |
Put_Line (File, " Width : Natural;"); |
Put_Line (File, " Height : Natural);"); |
Put_Line (File, ""); |
Put_Line (File, " with procedure Popup_Done"); |
Put_Line (File, " (Xdg_Popup : in out Xdg_Shell.Xdg_Popup'Class) is null;"); |
Put_Line (File, ""); |
Put_Line (File, " with procedure Repositioned"); |
Put_Line (File, " (Xdg_Popup : in out Xdg_Shell.Xdg_Popup'Class;"); |
Put_Line (File, " Token : Unsigned_32) is null;"); |
end if; |
Generate_Suffix_Spec_Events (Name); |
end Handle_Interface_Events_Xdg_Shell; |
procedure Handle_Interface_Subprograms_Presentation_Time |
(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 "Presentation" then |
Generate_Spec_Bind_Subprogram (Name); |
end if; |
if Name = "Presentation" then |
Put_Line (File, ""); |
Put_Line (File, " procedure Feedback"); |
Put_Line (File, " (Object : Presentation;"); |
Put_Line (File, " Surface : Protocols.Client.Surface'Class;"); |
Put_Line (File, " Feedback : in out Presentation_Feedback'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy and Surface.Has_Proxy;"); |
end if; |
end Handle_Interface_Subprograms_Presentation_Time; |
procedure Handle_Interface_Events_Presentation_Time |
(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 = "Presentation" then |
Put_Line (File, " with procedure Clock"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.