gtkmm 3.24.10
|
gtkmm is the official C++ interface for the popular GUI library GTK+. Highlights include typesafe callbacks, and a comprehensive set of widgets that are easily extensible via inheritance.
For instance, see Widgets, Dialogs, TreeView and TextView.
See also the Programming with gtkmm book. It can be downloaded from here.
Include the gtkmm header:
(You may include individual headers, such as gtkmm/button.h
instead.)
If your source file is program.cc
, you can compile it with:
If your version of g++ is not C++11-compliant by default, add the -std=c++11
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 GTKMM_CFLAGS
and GTKMM_LIBS
variables in the project Makefile.am
files. For example: