Loading...
Searching...
No Matches
oscr::controller_spinbox_field Concept Reference

#include <Controls.hpp>

Concept definition

template<typename Field>
concept oscr::controller_spinbox_field = avnd::controller_interaction_port<Field> && avnd::has_widget<Field>
&& std::is_integral_v<as_type(Field::value)>
&& (avnd::get_widget<Field>().widget == avnd::widget_type::spinbox)
Definition Controls.hpp:199

Detailed Description

The controller fields for which make_control_in (Concepts.hpp) makes a CustomGenericControl, and which thus need the matching port factory. Any other control with an on_controller_interaction hook – a toggle, a float slider, a control without a widget – is a plain control: it has nothing to register, and instantiating a factory for it must not be attempted.