HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Enumerations
button_type.hpp File Reference

Go to the source code of this file.

Enumerations

enum class  tt::button_type { momentary , toggle , radio }
 The type of button. More...
 

Enumeration Type Documentation

◆ button_type

enum class tt::button_type
strong

The type of button.

Enumerator
momentary 

A momentary button.

A momentary button does not have state. It is used to activate a function each time the button is activated.

Example momentary button widgets:

toggle 

A toggle button.

Activating a toggle button switches the state between 'on' and 'off'. If the state was 'other' activation will switch the state to 'off'.

Example toggle button widgets:

radio 

A radio button.

Activating a radio button will always switch to the 'on' state. Other radio buttons in a set will have different on-values and change the shared state.

Example radio button widgets: