7

I want to use libXrandr in C++. Is there a suitable documentation?

ManuelSchneid3r
  • 15,850
  • 12
  • 65
  • 103

1 Answers1

6

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.

peterph
  • 980
  • 6
  • 11
  • The project repository helped me immensely! I can't find type defintions though for like sruct of like XRROutputInfo etc – yatg Jul 18 '15 at 01:43
  • You probably didn't look at [include/X11/extensions/Xrandr.h:283](http://cgit.freedesktop.org/xorg/lib/libXrandr/tree/include/X11/extensions/Xrandr.h#n283). [`ctags`](http://ctags.sourceforge.net/) or similar utility might help next time. – peterph Jul 18 '15 at 14:21
  • 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. – Youda008 Jan 21 '21 at 22:52
  • `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). – peterph Jan 23 '21 at 19:06