16 "title" :
"Image Wrap Mode",
17 "description" :
"Controls what an image displays when the pixels requested are out of range.",
18 "keywords" : [
"overlap",
"repeat",
"clamp",
"tile" ],
21 "VuoList_VuoImageWrapMode"
33 const char *valueAsString =
"";
34 if (json_object_get_type(js) == json_type_string)
35 valueAsString = json_object_get_string(js);
39 if (! strcmp(valueAsString,
"none")) {
40 value = VuoImageWrapMode_None;
41 }
else if (! strcmp(valueAsString,
"clamp")) {
42 value = VuoImageWrapMode_ClampEdge;
43 }
else if (! strcmp(valueAsString,
"repeat")) {
44 value = VuoImageWrapMode_Repeat;
45 }
else if (! strcmp(valueAsString,
"mirror")) {
46 value = VuoImageWrapMode_MirroredRepeat;
58 char *valueAsString =
"";
61 case VuoImageWrapMode_None:
62 valueAsString =
"none";
64 case VuoImageWrapMode_ClampEdge:
65 valueAsString =
"clamp";
67 case VuoImageWrapMode_Repeat:
68 valueAsString =
"repeat";
70 case VuoImageWrapMode_MirroredRepeat:
71 valueAsString =
"mirror";
75 return json_object_new_string(valueAsString);
97 char *valueAsString =
"";
101 case VuoImageWrapMode_None:
102 valueAsString =
"None";
105 case VuoImageWrapMode_ClampEdge:
106 valueAsString =
"Clamp Edge";
109 case VuoImageWrapMode_Repeat:
110 valueAsString =
"Repeat";
113 case VuoImageWrapMode_MirroredRepeat:
114 valueAsString =
"Mirror Repeat";
117 return strdup(valueAsString);