Book Image

OpenFrameworks Essentials

Book Image

OpenFrameworks Essentials

Overview of this book

Table of Contents (19 chapters)
openFrameworks Essentials
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

The GUI


The GUI is created using the ofxGui addon. Its basic classes are the following (see Chapter 3, Adding a GUI and Handling Keyboard Events, for details):

Class name with an example of an object definition

Description

ofxPanel gui;

This is a GUI panel, which can contain GUI controls, such as sliders, checkboxes, buttons, and also groups of GUI controls.

ofxGuiGroup globalGroup;

This is a group of GUI controls.

ofxIntSlider countX;

This is a slider with integer values.

ofxFloatSlider stepX;

This is a slider with float values.

ofxVec2Slider size;

This is a slider with two float values.

ofxToggle filled;

This is a checkbox.

ofxColorSlider color;

This is a color selector.