8

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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

4 Comments

The project repository helped me immensely! I can't find type defintions though for like sruct of like XRROutputInfo etc
You probably didn't look at include/X11/extensions/Xrandr.h:283. ctags or similar utility might help next time.
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.
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).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.