|
cairomm 1.18.1
|
Cairomm is available under the terms of the LGPL license
If you're just beginning to learn cairomm, a good place to start is with the Cairo::Surface and Cairo::Context classes. In general terms, you draw onto a Surface using the graphics settings specified in your Context.
Include the cairomm header:
This includes every header installed by cairomm. You may include individual headers, such as cairomm/context.h instead.
If your source file is program.cc, you can compile it with:
If your version of g++ is not C++17-compliant by default, add the -std=c++17 option.
If you use Meson, include the following in meson.build:
Alternatively, if using autoconf, use the following in configure.ac:
Then use the generated CAIROMM_CFLAGS and CAIROMM_LIBS variables in the project Makefile.am files. For example: