O'Reilly logo

SFML Game Development By Example by Raimondas Pupius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What is a GUI?

A GUI, short for Graphical User Interface, is a visual intermediary between the user and a piece of software which serves as a control mechanism for digital devices or computer programs. Using this type of interface is faster and easier than relying on text-based controls, such as typing commands.

Before any code is written, we need to outline the desired features of our GUI system, which is going to consist of three major components:

  • Element: Every GUI surface that is drawn onto the screen
  • Interface: A special kind of element that serves as a container for other elements and can be moved around as well as scrolled
  • Manager: The class that is in charge of keeping GUI interfaces in line and behaving

All of the elements in this system need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required