new Mask()
Extends
Members
-
absolute :olympe.df.POBoolean
Methods
-
appendChild(child, childId)
-
Appends a child Svg element
Parameters:
Name Type Description child
olympe.ui.vectorial.GraphicsElement childId
string Returns:
-
getDimension()
-
Gets the dimension of this element
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.df.PVector2
-
getPosition()
-
Gets the position of this element
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.df.PVector2
-
getScale()
-
Gets the scale of this element
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.df.PONumber
-
<protected> getUIProxyBoxElement()
-
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.uiapi.vectorial.BoxElement
-
getUIProxyMask()
-
This method needs to be public for GraphicsElement to be able to access this uiProxy
Returns:
Proxified Svg container
- Type
- olympe.uiapi.vectorial.Mask
-
<protected> getUIProxySvgElement()
-
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.uiapi.vectorial.SvgElement
-
isHidden()
-
- Inherited From:
- Overrides:
Returns:
- Type
- olympe.df.POBoolean
-
removeChild(childId)
-
Removes a child Svg element
Parameters:
Name Type Description childId
string Returns:
-
setAbsolute(value)
-
Sets wether the coordinate system of the mask is absolute or relative to the parent object
Parameters:
Name Type Description value
olympe.df.POBoolean | boolean Returns:
-
setDimension(dimension)
-
Sets the dimension of this element
Parameters:
Name Type Description dimension
olympe.df.PVector2 Dimension of this element
- Inherited From:
- Overrides:
Returns:
-
setHidden(hidden)
-
Parameters:
Name Type Description hidden
olympe.df.OBoolean | boolean | olympe.df.Proxy | olympe.df.Node True if content must be hidden, false otherwise
- Inherited From:
- Overrides:
Returns:
-
setIgnoreUserInteraction( [ignore])
-
Disables mouse events for this element. However, mouse events will target its descendants unless they are manually set to also ignore user interactions.
Parameters:
Name Type Argument Default Description ignore
boolean <optional>
false ignore If true, this element is never the target of mouse events (but not its descendants).
- Inherited From:
- Overrides:
-
setPosition(position)
-
Sets the position of this element
Parameters:
Name Type Description position
olympe.df.PVector2 | olympe.df.Vector2 The position of this element
- Inherited From:
- Overrides:
Returns:
-
setScale(scale)
-
Sets the scale of this element
Parameters:
Name Type Description scale
olympe.df.PONumber | number Scale of this element
- Inherited From:
- Overrides:
Returns: