|
About This Guide
|
This guide is a collection of example programs demonstrating GTK+ widgets in action. The idea
is that people can come to this site and cut and paste the widget declarations into their code.
There are screenshots of every example so that people can see what the widgets look like
before they use them. I know that I've been frustrated in the past by text only APIs where
it was hard to tell by the text alone what that widget would look like.
Although all the code here is in C, there are GTK bindings for many other languages such as
C++, Perl, and Python.
Tammy and I prefer to do most of our coding by hand, but there are some IDEs (Integrated Development
Environments) for GTK+. If that's what you like, take a look at our guide to
Glade: GTK+ User Interface Builder.
|
|
|
|
Container Widget Examples
|
GTK+ container widgets are used to control the layout of a graphical user interface.
Other GTK+ widgets are grouped together inside the container widgets. In fact, container
widgets (such as the window widget) frequently contain other container widgets (such as a
horizontal box container).
|
|
|
|
Miscellaneous Widget Examples
|
This collection of widgets don't really fit into the other categories. They tend to serve specialized functions
and are not as general purpose as the other widgets.
|
|
|
|
|
Basic Widget Examples
|
This collection of examples deals with basic widgets such as buttons, text areas, menus,
toolbars, and more.
|
|
|
|
GTK+ Resources
|
There is a wealth of information on how to program in GTK+. Here's a list
of the GTK+ resources on the web and in print. In addition, there are other
GTK+ tutorials on the net.
Books:
Online resources:
|
|
|
|