joakim-strandberg / xcb_library_thin_ada_binding

7 stars 1 forks source link

xcb_query_tree_children? #4

Open bracke opened 4 years ago

bracke commented 4 years ago

Hi

I'm using Query_Tree_Reply to get the list of children for a window. In C I would then use xcb_query_tree_children(reply) to get the windows, but it's nowhere to be found in the binding.

Is it missing or am I just misunderstanding how the binding is supposed to be used?

Kind regards Bent Bracke

joakim-strandberg commented 4 years ago

Hi Beck,

Thanks for the feedback on the Ada binding. Unfortunately it is missing in the binding. Didn't notice that when I made the binding. Not sure when I will have time to look into it and improve the binding, but will prioritize it. What I will do is to look into the xproto.xml file parser application and add code to generate the missing subprogram declarations. I hope you can work around the issue for the moment by manually adding missing subprogram declarations unless you are that brave to edit the xml file parser application yourself.

Best regards, Joakim

bracke commented 4 years ago

Hi Joakim

I have also been looking for a generate_id function for Cursor_Id_Type. I have added the following:

function Generate_Id (C : Connection_Access_Type) return Cursor_Id_Type is begin return (Cursor_Id_Type (X_Id_Type'(Generate_Id (C)))); end Generate_Id;

Kind regards Bent Bracke