Vuo  2.0.0
VuoLayer.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoAnchor.h"
13 #include "VuoColor.h"
14 #include "VuoPoint2d.h"
15 #include "VuoSceneObject.h"
16 #include "VuoTransform2d.h"
17 #include "VuoWindowReference.h"
18 #include "VuoList_VuoColor.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
38 typedef const struct { void *l; } * VuoLayer;
39 
40 #include "VuoList_VuoLayer.h"
41 
45 VuoLayer VuoLayer_makeGroup3(VuoLayer layer1, VuoLayer layer2, VuoLayer layer3, VuoTransform2d transform);
47 
48 VuoLayer VuoLayer_make(VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha);
50 VuoLayer VuoLayer_makeWithShadow(VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance);
51 VuoLayer VuoLayer_makeRealSize(VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha, VuoBoolean preservePhysicalSize);
52 VuoLayer VuoLayer_makeRealSizeWithShadow(VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha, VuoBoolean preservePhysicalSize, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance);
53 
54 VuoLayer VuoLayer_makeColor(VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height);
55 VuoLayer VuoLayer_makeOval(VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness);
56 VuoLayer VuoLayer_makeRoundedRectangle(VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness, VuoReal roundness);
57 VuoLayer VuoLayer_makeCheckmark(VuoText name, VuoColor fillColor, VuoColor outlineColor, VuoReal outlineThickness, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height);
58 
59 VuoLayer VuoLayer_makeLinearGradient(VuoText name, VuoList_VuoColor colors, VuoPoint2d start, VuoPoint2d end, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount);
60 VuoLayer VuoLayer_makeRadialGradient(VuoText name, VuoList_VuoColor colors, VuoPoint2d gradientCenter, VuoReal radius, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount);
61 
62 uint64_t VuoLayer_getId(const VuoLayer layer);
63 
64 void VuoLayer_setId(VuoLayer layer, uint64_t id);
65 
66 VuoRectangle VuoLayer_getBoundingRectangle(VuoLayer layer, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor);
67 VuoLayer VuoLayer_setAnchor(VuoLayer child, VuoAnchor anchor, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor);
68 
69 bool VuoLayer_isPopulated(VuoLayer layer);
70 
72 struct json_object * VuoLayer_getJson(const VuoLayer value);
73 char * VuoLayer_getSummary(const VuoLayer value);
74 
76 
79 VuoLayer VuoLayer_makeFromString(const char *str);
80 char * VuoLayer_getString(const VuoLayer value);
81 void VuoLayer_retain(VuoLayer value);
82 void VuoLayer_release(VuoLayer value);
84 
89 #ifdef __cplusplus
90 }
91 #endif