Next
Previous Contents
GTK Tutorial
Ian Main
<imain@gtk.org>
, Tony Gale
<gale@gtk.org>
August 13th, 1998
1.
Introduction
2.
Getting Started
2.1 Hello World in GTK
2.2 Compiling Hello World
2.3 Theory of Signals and Callbacks
2.4 Events
2.5 Stepping Through Hello World
3.
Moving On
3.1 Data Types
3.2 More on Signal Handlers
3.3 An Upgraded Hello World
4.
Packing Widgets
4.1 Theory of Packing Boxes
4.2 Details of Boxes
4.3 Packing Demonstration Program
4.4 Packing Using Tables
4.5 Table Packing Example
5.
Widget Overview
5.1 Casting
5.2 Widget Hierarchy
5.3 Widgets Without Windows
6.
The Button Widget
6.1 Normal Buttons
6.2 Toggle Buttons
6.3 Check Buttons
6.4 Radio Buttons
7.
Range Widgets
7.1 The Scale Widgets
7.2 The Scrollbar Widgets
7.3 The Adjustment Object
7.4 Common Functions, Signals, and Macros
7.5 Key and Mouse bindings
7.6 Example
8.
Miscallaneous Widgets
8.1 Labels
8.2 The Tooltips Widget
8.3 Progress Bars
8.4 Dialogs
8.5 Pixmaps
8.6 Rulers
8.7 Statusbars
8.8 Text Entries
8.9 Color Selection
8.10 File Selections
9.
Container Widgets
9.1 Notebooks
9.2 Scrolled Windows
9.3 Paned Window Widgets
9.4 Aspect Frames
10.
CList Widget
10.1 Creating a GtkCList widget
10.2 Modes of operation
10.3 Working with titles
10.4 Manipulating the list itself
10.5 Adding rows to the list
10.6 Setting text and pixmaps in the cells
10.7 Storing data pointers
10.8 Working with selections
10.9 The signals that bring it together
10.10 A GtkCList example
11.
List Widget
11.1 Signals
11.2 Functions
11.3 Example
11.4 List Item Widget
11.5 Signals
11.6 Functions
11.7 Example
12.
Tree Widget
12.1 Creating a Tree
12.2 Adding a Subtree
12.3 Handling the Selection List
12.4 Tree Widget Internals
12.5 Tree Item Widget
12.6 Tree Example
13.
Menu Widget
13.1 Manual Menu Creation
13.2 Manual Menu Example
13.3 Using GtkMenuFactory
13.4 Menu Factory Example
14.
Text Widget
14.1 Creating and Configuring a Text box
14.2 Text Manipulation
14.3 Keyboard Shortcuts
14.4 A GtkText Example
15.
Undocumented Widgets
15.1 Toolbar
15.2 Fixed Container
15.3 Curves
15.4 Previews
16.
The EventBox Widget
17.
Setting Widget Attributes
18.
Timeouts, IO and Idle Functions
18.1 Timeouts
18.2 Monitoring IO
18.3 Idle Functions
19.
Advanced Event and Signal Handling
19.1 Signal Functions
19.2 Signal Emission and Propagation
20.
Managing Selections
20.1 Overview
20.2 Retrieving the selection
20.3 Supplying the selection
21.
glib
21.1 Definitions
21.2 Doubly Linked Lists
21.3 Singly Linked Lists
21.4 Memory Management
21.5 Timers
21.6 String Handling
21.7 Utility and Error Functions
22.
GTK's rc Files
22.1 Functions For rc Files
22.2 GTK's rc File Format
22.3 Example rc file
23.
Writing Your Own Widgets
23.1 Overview
23.2 The Anatomy Of A Widget
23.3 Creating a Composite widget
23.4 Creating a widget from scratch.
23.5 Learning More
24.
Scribble, A Simple Example Drawing Program
24.1 Overview
24.2 Event Handling
24.3 The DrawingArea Widget, And Drawing
24.4 Adding XInput support
25.
Tips For Writing GTK Applications
26.
Contributing
27.
Credits
28.
Tutorial Copyright and Permissions Notice
Appendix
29.
GDK Event Types
30.
Code Examples
30.1 Tictactoe
30.2 GtkDial
30.3 Scribble
Next
Previous Contents