I want to use libXrandr in C++. Is there a suitable documentation?
1 Answer
See project page and project repository.
Reasonable Linux distributions come with man pages, which might be split-off into a -devel package (for example on Slackware you need libXrandr, on openSUSE it would be libXrandr-devel) - Xrandr(3) is a good starting point.
4 Comments
yatg
The project repository helped me immensely! I can't find type defintions though for like sruct of like XRROutputInfo etc
peterph
You probably didn't look at include/X11/extensions/Xrandr.h:283.
ctags or similar utility might help next time.Youda008
There is no documentation of the library API on the project page. They just describe the protocol and talk about xrandr like if it was just the command line tool, no mention about using it as a library.
peterph
xrandr is just a command line tool - pretty much a thin wrapper around libXrandr. But if you for whatever reason need to use libXrandr, looking at xrandr source would be a reasonable place to start (since there is no documentation per se).