Vuo 2.4.4
Loading...
Searching...
No Matches
VuoExtrapolationMode.c
Go to the documentation of this file.
1
11
13#ifdef VUO_COMPILER
15 "title" : "Extrapolation Mode",
16 "description" : "How to extrapolate a list.",
17 "keywords" : [ ],
18 "version" : "1.0.0",
19 "dependencies" : [
20 "VuoList_VuoExtrapolationMode"
21 ]
22 });
23#endif
25
34{
35 const char *valueAsString = "";
36 if (json_object_get_type(js) == json_type_string)
37 valueAsString = json_object_get_string(js);
38
39 VuoExtrapolationMode value = VuoExtrapolationMode_Wrap;
40
41 if (strcmp(valueAsString, "stretch") == 0)
42 value = VuoExtrapolationMode_Stretch;
43
44 return value;
45}
46
51{
52 char *valueAsString = "wrap";
53
54 if (value == VuoExtrapolationMode_Stretch)
55 valueAsString = "stretch";
56
57 return json_object_new_string(valueAsString);
58}
59
70
75{
76 char *valueAsString = "Wrap";
77
78 if (value == VuoExtrapolationMode_Stretch)
79 valueAsString = "Stretch";
80
81 return strdup(valueAsString);
82}
83
88{
89 return valueA == valueB;
90}
91
96{
97 return valueA < valueB;
98}