VuoLayer implementation.
Definition in file VuoLayer.c.
Go to the source code of this file.
Functions | |
VuoLayer | VuoLayer_makeEmpty (void) |
Creates a new, empty layer. More... | |
VuoLayer | VuoLayer_make (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha) |
Creates a visible layer that shows an image. More... | |
VuoLayer | VuoLayer_makeWithTransform (VuoText name, VuoImage image, VuoTransform2d transform, VuoReal alpha) |
Creates a visible layer that shows an image. More... | |
VuoLayer | VuoLayer_makeRealSize (VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha, VuoBoolean preservePhysicalSize) |
Creates a visible layer that shows an image. More... | |
static VuoLayer | VuoLayer_makeWithShadowInternal (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha, VuoBoolean preservePhysicalSize, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance, VuoBoolean isRealSize) |
Creates a layer with a shadow, optionally real size. More... | |
VuoLayer | VuoLayer_makeWithShadow (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance) |
Creates a visible layer with a shadow. More... | |
VuoLayer | VuoLayer_makeRealSizeWithShadow (VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha, VuoBoolean preservePhysicalSize, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance) |
Creates a visible layer with a shadow. More... | |
VuoLayer | VuoLayer_makeColor (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height) |
Creates a rectangular layer with the specified color. More... | |
VuoLayer | VuoLayer_makeOval (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness) |
Creates an oval layer with the specified color. More... | |
VuoLayer | VuoLayer_makeCheckmark (VuoText name, VuoColor fillColor, VuoColor outlineColor, VuoReal outlineThickness, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height) |
Creates a layer with a checkmark of the specified color. More... | |
VuoLayer | VuoLayer_makeRoundedRectangle (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness, VuoReal roundness) |
Creates a rounded rectangle layer with the specified color. More... | |
VuoLayer | VuoLayer_makeLinearGradient (VuoText name, VuoList_VuoColor colors, VuoPoint2d start, VuoPoint2d end, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount) |
Creates a visible layer with a linear gradient. More... | |
VuoLayer | VuoLayer_makeRadialGradient (VuoText name, VuoList_VuoColor colors, VuoPoint2d gradientCenter, VuoReal radius, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount) |
Creates a visible layer with a radial gradient. More... | |
VuoLayer | VuoLayer_makeGroup (VuoList_VuoLayer childLayers, VuoTransform2d transform) |
Creates a layer with a group of child layers. More... | |
VuoLayer | VuoLayer_makeGroup2 (VuoLayer layer1, VuoLayer layer2, VuoTransform2d transform) |
Creates a layer by combining two layers (layer1, then layer2). More... | |
VuoLayer | VuoLayer_makeGroup3 (VuoLayer layer1, VuoLayer layer2, VuoLayer layer3, VuoTransform2d transform) |
Creates a layer by combining three layers. More... | |
uint64_t | VuoLayer_getId (const VuoLayer layer) |
Returns the layer's identification number (unique among objects in the currently-running composition). More... | |
void | VuoLayer_setId (VuoLayer layer, uint64_t id) |
Sets the layer's identification number (should be unique among objects in the currently-running composition). More... | |
VuoList_VuoLayer | VuoLayer_getChildLayers (VuoLayer layer) |
Returns a list of this layer's child layers. More... | |
static VuoRectangle | VuoLayer_getBoundingRectangleWithSceneObject (VuoSceneObject so, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor) |
Returns a rectangle enclosing the sceneobject (which is assumed to be 2-dimensional). More... | |
VuoLayer | VuoLayer_setAnchor (VuoLayer child, VuoAnchor anchor, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor) |
Moves the pivot point of child by creating a parent layer and assigning child with an offset. More... | |
VuoRectangle | VuoLayer_getBoundingRectangle (VuoLayer layer, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor) |
Returns the minimal rectangle enclosing the layer and its child layers. More... | |
bool | VuoLayer_isPopulated (VuoLayer layer) |
Returns true if the layer or any of its children have a non-empty type. More... | |
VuoLayer | VuoLayer_makeFromJson (json_object *js) |
json_object * | VuoLayer_getJson (const VuoLayer value) |
char * | VuoLayer_getSummary (const VuoLayer value) |
|
static |
Returns a rectangle enclosing the sceneobject (which is assumed to be 2-dimensional).
Definition at line 461 of file VuoLayer.c.
|
static |
Creates a layer with a shadow, optionally real size.
name | The layer's name (used by, e.g., VuoRenderedLayers_findLayer). |
image | The image shown on the layer. |
center | The center of the layer, in Vuo Coordinates. |
rotation | The layer's angle, in degrees. |
width | The width of the layer, in Vuo Coordinates. |
alpha | The opacity of the layer, 0–1. |
preservePhysicalSize | See VuoSceneObject_shouldPreservePhysicalSize. |
shadowColor | The color of the layer's shadow. |
shadowBlur | The amount to blur the layer's shadow, in pixels. |
shadowAngle | The angle of the layer's shadow, in degrees. |
shadowDistance | The distance that the shadow is offset from the layer, in Vuo Coordinates. |
isRealSize | Should this layer be rendered at actual (pixel-perfect) size? |
Definition at line 125 of file VuoLayer.c.