Table of Contents
Here is a tutorial that introduces some of the basic features of Gamma and GTK, such as creating widgets, attaching callbacks, ect.
#!/usr/cogent/bin/gamma /* Example: Make a window. * This example loads the Gamma/GTK widget library, * creates and displays a blank window, and enters the * GTK main processing loop. */ /* Initialize Cogent interprocess communication, which is * necessary for using Gamma/GTK. */ init_ipc("a", "aq"); /* Create a new instance of a GtkWindow object. */ window = new(GtkWindow); /* Show the window. */ window.show(); /* Enter the GTK main processing loop. */ gtk_main();
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.