This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Classes | Enumerations
Selector.hpp File Reference
#include "Selectable.hpp"
#include <Def/Def.hpp>
#include <Helpers/Debug.hpp>
#include <Helpers/Updatable.hpp>
Include dependency graph for Selector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EmptySelectorCallback
 A callback for the GenericSelector class that does nothing. More...
 
class  SelectorBase
 Base class for all Selectors exposing the get method, so it can be used by display elements etc, without having to provide the full generic type. More...
 
class  GenericSelector< N, Callback >
 
class  Selector< N >
 A Selector with an empty callback. More...
 

Enumerations

enum  Wrap : bool { Wrap::Clamp = false, Wrap::Wrap = true, Wrap::NoWrap = false }
 An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maximum (minimum) setting. More...
 

Enumeration Type Documentation

◆ Wrap

enum Wrap : bool
strong

An enumeration to set the behavior of selectors that are incremented (decremented) beyond their maximum (minimum) setting.

Enumerator
Clamp 

When the maximum (minimum) setting is reached, clamp to the maximum (minimum) setting.

Todo:
Rename to Clamp?
Wrap 

When the maximum (minimum) setting is reached, wrap around to the minimum (maximum) setting.

NoWrap 

Definition at line 14 of file Selector.hpp.