Namespaces
The Go-GTK project contains a number of namespaces used to organize the code and make it easier for developers to find what they're looking for. These sub-projects or packages reflect the naming within the main GTK+ project, so those familiar with this can skip this section. Most of the examples so far used just gtk, which is clearly the main package to use for building a user interface but, as we saw before, glib may be important too (for things not specifically about widgets).
Let's look at what each namespace covers and see where it might be useful in application development:
|
gdk |
GDK stands for GIMP Drawing Kit; it's a low-level component of GTK+ that handles the details of rendering on each platform that is supported. ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access