Book Description
Freshly updated for GTK3, the 2nd edition of An Introduction to C & GUI Programming will teach you all you need to know to write simple programs in C and start creating GUIs, even if you're an absolute beginner.
The first half of the book is an introduction to C, and covers the basics of writing simple command-line programs. The second half shows how to use the GTK user interface toolkit with C to create feature-rich GUI applications which can be run on the desktop.
156 pages of essential information:
- Create simple command-line C programs
- Control flow with conditions and loops
- Handle variables, strings, and files
- Design graphical user interface applications in C
- Handle user input with buttons and menus
- Use advanced UI features such as data stores and dialogs
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download An Introduction to C & GUI Programming ebook for free in PDF format (7.9 MB).
Table of Contents
Chapter 1
Getting started
Chapter 2
Variables and arithmetic
Chapter 3
Conditions and comparisons
Chapter 4
More advanced flow control
Chapter 5
Pointers
Chapter 6
Functions
Chapter 7
Arrays and strings
Chapter 8
The string library
Chapter 9
User Input
Chapter 10
File input and output
Chapter 11
More about types and variables
Chapter 12
Header files and the preprocessor
Chapter 13
Introduction to GTK
Chapter 14
Your first GTK program
Chapter 15
Buttons
Chapter 16
Labels and layout
Chapter 17
More advanced layout
Chapter 18
User input
Chapter 19
Combo boxes and list stores
Chapter 20
Tree views
Chapter 21
Menus
Chapter 22
Dialogs
Chapter 23
Built-in dialogs
Chapter 24
Customising widgets
Chapter 25
Glade
Chapter 26
Quick reference