An Introduction to C & GUI Programming

by Simon Long

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Even if you are an absolute beginner, this book will teach you all you need to know to write simple programs in C and start creating GUIs.

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.

- 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 (9.3 MB).

Table of Contents

Chapter 1
Getting started
10
Chapter 2
Variables and arithmetic
14
Chapter 3
Conditions and comparisons
19
Chapter 4
More advanced flow control
24
Chapter 5
Pointers
30
Chapter 6
Functions
35
Chapter 7
Arrays and strings
41
Chapter 8
The string library
46
Chapter 9
User Input
52
Chapter 10
File input and output
58
Chapter 11
More about types and variables
63
Chapter 12
Header files and the preprocessor
68
Chapter 13
Introduction to GTK
74
Chapter 14
Your first GTK program
77
Chapter 15
Buttons
81
Chapter 16
Labels and layout
85
Chapter 17
More advanced layout
91
Chapter 18
GUI user input
97
Chapter 19
Combo boxes and list stores
103
Chapter 20
Tree views
109
Chapter 21
Menus
115
Chapter 22
Dialogs
120
Chapter 23
Built-in dialogs
123
Chapter 24
Customising widgets
131
Chapter 25
Glade
135
Chapter 26
C quick reference
144

Book Details

Subject
Computer Science
Publisher
Raspberry Pi Press
Published
2019
Pages
156
Edition
1
Language
English
ISBN13 Digital
9781912047659
ISBN10 Digital
1912047659
PDF Size
9.3 MB
License
CC BY-NC-SA

Book Hashtags

Related Books

Programming Persistent Memory
Beginning and experienced programmers will use this comprehensive guide to persistent memory programming. You will understand how persistent memory brings together several new software/hardware requirements, and offers great promise for better performance and faster application startup times - a huge leap forward in byte-addressable capacity compar...
Android on x86
Android on x86: an Introduction to Optimizing for IntelĀ® Architecture serves two main purposes. First, it makes the case for adapting your applications onto Intel's x86 architecture, including discussions of the business potential, the changing landscape of the Android marketplace, and the unique challenges and opportunities that arise from x86 de...
An Introduction to Matlab and Mathcad
This free book, or really a "coursebook" for a college freshman-level class, has been updated for Spring 2014 and provides an introduction to programming and problem solving using both Matlab and Mathcad. We provide a balanced selection of introductory exercises and real-world problems (i.e. no "contrived" problems). We include ...
Introduction to Law
This book is exceptional in the sense that it provides an introduction to law in general rather than the law of one specific jurisdiction, and it presents a unique way of looking at legal education. It is crucial for lawyers to be aware of the different ways in which societal problems can be solved and to be able to discuss the advantages and disad...
Python Machine Learning Projects
As machine learning is increasingly leveraged to find patterns, conduct analysis, and make decisions - sometimes without final input from humans who may be impacted by these findings - it is crucial to invest in bringing more stakeholders into the fold. This book of Python projects in machine learning tries to do just that: to equip the developers ...
An Introduction to Computer Networks
An Introduction to Computer Networks, a free and open general-purpose computer-networking free book, complete with diagrams and exercises. It covers the LAN, internetworking and transport layers, focusing primarily on TCP/IP. Particular attention is paid to congestion; other special topics include queuing, real-time traffic, network management, sec...