An Introduction to C & GUI Programming
eBook - ePub

An Introduction to C & GUI Programming

Simon Long

  1. 152 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

An Introduction to C & GUI Programming

Simon Long

Book details
Table of contents
Citations

About This Book

The popular C programming language is used for a huge range of applications, from the tiny microcontrollers used in toasters and watches up to complete operating systems. The first half of this book is an introduction to C, and covers the basics of writing simple command-line programs. The second half of the book shows how to use the GTK user interface toolkit with C to create feature-rich GUI applications which can be run on the desktop. No previous experience of C or GTK is required - even if you are an absolute beginner, this book will teach you all you need to know.

In this book, you'll learn how to:

  • 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.

Updated for GTK3, this book will teach you all you need to know to write simple programs in C and start creating GUIs. Although the examples in this book were developed on a Raspberry Pi running, Raspberry Pi OS, you can follow along on other operating systems, including Linux, macOS, and Windows with the Windows Subsystem for Linux.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access An Introduction to C & GUI Programming by Simon Long in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C. We have over one million books available in our catalogue for you to explore.

Information

Year
2022
ISBN
9781916868298
Edition
2

Table of contents

  1. Cover
  2. Copyright
  3. Welcome to An Introduction to C & GUI Programming
  4. About the Author
  5. Dedication
  6. Contents
  7. Chapter 1: Getting started: Learn how to use C to program the Raspberry Pi
  8. Chapter 2: Variables and arithmetic: Create variables and do maths
  9. Chapter 3: Conditions and comparisons: Control the flow of your C programs
  10. Chapter 4: More advanced flow control: For loops and case statements
  11. Chapter 5: Pointers: Variables have addresses too
  12. Chapter 6: Functions: Split your code into bite-sized chunks
  13. Chapter 7: Arrays and strings: Handle lists of values, and letters
  14. Chapter 8: The string library: Simplify common operations on strings
  15. Chapter 9: User Input: Reading and interpreting user input
  16. Chapter 10: File input and output: Learn to read from and write to files
  17. Chapter 11: More about types and variables: Type definitions, enumerations, and more
  18. Chapter 12: Header files and the preprocessor: Splitting code up into multiple files
  19. Chapter 13: Introduction to GTK: Get ready to start creating GUI elements
  20. Chapter 14: Your first GTK program: Start coding in C with the GTK library
  21. Chapter 15: Buttons: Make your window do something by adding a button
  22. Chapter 16: Labels and layout: Use a box widget to add a text label to your window
  23. Chapter 17: More advanced layout: Expand your window, and position and resize buttons automatically
  24. Chapter 18: User input: Enable users to enter text and data, and to select options
  25. Chapter 19: Combo boxes and list stores: Create combo boxes for user input and associate list stores with them
  26. Chapter 20: Tree views: Use the GtkTreeView widget to display information
  27. Chapter 21: Menus: Create menu bars with drop-down menus
  28. Chapter 22: Dialogs: Give users information and ask them questions
  29. Chapter 23: Built-in dialogs: GTK contains some ready-made dialogs
  30. Chapter 24: Customising widgets: Change the properties of widgets
  31. Chapter 25: Glade: Create window layouts for applications
  32. Chapter 26: Quick reference: Cheat sheets and code examples
  33. Back Cover