text stringlengths 0 234 |
|---|
Put_Line (File, " with Pre => not Object.Is_Connected;"); |
Put_Line (File, " -- Attempts connecting with the Wayland server"); |
Put_Line (File, ""); |
Put_Line (File, " type Events_Status is (Has_Events, No_Events, Error);"); |
Put_Line (File, ""); |
Put_Line (File, " type Events_Status_Array is array (Positive range <>) of Events_Status;"); |
Put_Line (File, ""); |
Put_Line (File, " type File_Descriptor_Array is array (Positive range <>) of File_Descriptor;"); |
Put_Line (File, ""); |
Put_Line (File, " function Check_For_Events"); |
Put_Line (File, " (Object : Display;"); |
Put_Line (File, " Timeout : Duration;"); |
Put_Line (File, " Descriptors : File_Descriptor_Array := (1 .. 0 => 0)) return Events_Status_Array"); |
Put_Line (File, " with Post => Check_For_Events'Result'Length = Descriptors'Length + 1;"); |
Put_Line (File, ""); |
Put_Line (File, " function Flush (Object : Display) return Optional_Result"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Send all buffered requests to the Wayland compositor"); |
Put_Line (File, " --"); |
Put_Line (File, " -- Returns the number of bytes sent if successful."); |
Put_Line (File, ""); |
Put_Line (File, " procedure Flush (Object : Display)"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Send all buffered requests to the Wayland compositor"); |
Put_Line (File, " --"); |
Put_Line (File, " -- Raises Program_Error if flushing failed."); |
Put_Line (File, ""); |
Put_Line (File, " function Dispatch (Object : Display) return Optional_Result"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Process incoming events"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Dispatch (Object : Display)"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Process incoming events"); |
Put_Line (File, " --"); |
Put_Line (File, " -- Raises Program_Error if dispatching failed."); |
Put_Line (File, ""); |
Put_Line (File, " function Dispatch_Pending (Object : Display) return Optional_Result"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Dispatch events on the default queue without reading from"); |
Put_Line (File, " -- the display's file descriptor"); |
Put_Line (File, " --"); |
Put_Line (File, " -- It does not attempt to read the display's file descriptor and simply"); |
Put_Line (File, " -- returns zero if the main queue is empty, i.e., it does not block."); |
Put_Line (File, " --"); |
Put_Line (File, " -- Returns the number of dispatched events if successful."); |
Put_Line (File, ""); |
Put_Line (File, " function Prepare_Read (Object : Display) return Call_Result_Code"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Prepare to read events from the display's file descriptor"); |
Put_Line (File, ""); |
Put_Line (File, " function Read_Events (Object : Display) return Call_Result_Code"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Cancel_Read (Object : Display)"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, " -- Cancel read intention on display's file descriptor"); |
Put_Line (File, ""); |
Put_Line (File, " function Roundtrip (Object : Display) return Integer"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Roundtrip (Object : Display)"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Disconnect (Object : in out Display)"); |
Put_Line (File, " with Pre => Object.Is_Connected,"); |
Put_Line (File, " Post => not Object.Is_Connected;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Get_Registry"); |
Put_Line (File, " (Object : Display;"); |
Put_Line (File, " Registry : in out Client.Registry'Class)"); |
Put_Line (File, " with Pre => Object.Is_Connected and not Registry.Has_Proxy;"); |
Put_Line (File, ""); |
Put_Line (File, " function Sync (Object : Display) return Callback'Class"); |
Put_Line (File, " with Pre => Object.Is_Connected;"); |
elsif Name = "Compositor" then |
Put_Line (File, ""); |
Put_Line (File, " procedure Create_Surface (Object : Compositor;"); |
Put_Line (File, " Surface : in out Client.Surface'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Create_Region (Object : Compositor;"); |
Put_Line (File, " Region : in out Client.Region'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy;"); |
elsif Name = "Seat" then |
Put_Line (File, ""); |
Put_Line (File, " procedure Get_Pointer (Object : Seat;"); |
Put_Line (File, " Pointer : in out Client.Pointer'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy and not Pointer.Has_Proxy;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Get_Keyboard (Object : Seat;"); |
Put_Line (File, " Keyboard : in out Client.Keyboard'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy and not Keyboard.Has_Proxy;"); |
Put_Line (File, ""); |
Put_Line (File, " procedure Get_Touch (Object : Seat;"); |
Put_Line (File, " Touch : in out Client.Touch'Class)"); |
Put_Line (File, " with Pre => Object.Has_Proxy and not Touch.Has_Proxy;"); |
elsif Name = "Shm_Pool" then |
Put_Line (File, ""); |
Put_Line (File, " procedure Create_Buffer (Object : Shm_Pool;"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.