Vuo  2.1.2
VuoInputEditorCurve.cc
Go to the documentation of this file.
1 
10 #include "VuoInputEditorCurve.hh"
11 
12 extern "C"
13 {
14  #include "VuoCurve.h"
15 }
16 
18 
23 {
24  return new VuoInputEditorCurve();
25 }
26 
31 {
32  VuoInputEditorMenuItem *rootMenuItem = new VuoInputEditorMenuItem("root");
33 
34  VuoCurve curves[] = {
35  VuoCurve_Linear,
36  VuoCurve_Quadratic,
37  VuoCurve_Cubic,
38  VuoCurve_Circular,
39  VuoCurve_Exponential,
40  };
41  for (int i = 0; i < sizeof(curves)/sizeof(VuoCurve); ++i)
42  rootMenuItem->addItem(new VuoInputEditorMenuItem(VuoCurve_getSummary(curves[i]),
43  VuoCurve_getJson(curves[i]),
44  renderMenuIconWithCurve(curves[i], VuoCurveEasing_In, isInterfaceDark())));
45 
46  return rootMenuItem;
47 }