G4P (GUI for Processing) 4.3.9
A set of GUI controls for your Processing sketch.
Loading...
Searching...
No Matches
g4p_controls.GToggleGroup Class Reference

Public Member Functions

void addControl (GToggleControl tc)
 
void addControls (GToggleControl... controls)
 
 GToggleGroup ()
 

Detailed Description

Use this class to create a single selection collection of options.

To use create an object of this class and then add GOption objects to it with the addControl method.

You cannot add GCheckbox objects because they are designed to work independently.

Author
Peter Lager

Constructor & Destructor Documentation

◆ GToggleGroup()

g4p_controls.GToggleGroup.GToggleGroup ( )

Create a toggle group object.

Member Function Documentation

◆ addControl()

void g4p_controls.GToggleGroup.addControl ( GToggleControl  tc)

Add a GOption object to this group.

Parameters
tcthe toggle control

◆ addControls()

void g4p_controls.GToggleGroup.addControls ( GToggleControl...  controls)

Add a set of comma separated GOptions.

Parameters
controlsa list of controls to add