![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IPlaneTouchArea graph node interface.
This interface represents a flat rectangular or elliptical input object in world space, with unit size dimensions around the origin.
Use the Graph::IScalable base interface to set an overall scaling factor for the plane, i.e. define its actual size.
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Get the constant Graph::ITransform interface. This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.
Murl.Graph.ITransform GetTransformInterface()
Get the constant Graph::ITouchArea interface. This method returns a constant pointer to the node's Graph::ITouchArea interface, to be able to access the node's base touch area functionality.
Murl.Graph.ITouchArea GetTouchAreaInterface()
Set the shape of the touch area.
Boolean SetShape(Murl.IEnums.TouchAreaShape shape)
shape | The shape to use. |
Get the shape of the touch area.
Murl.IEnums.TouchAreaShape GetShape()
Set the size of the display rectangle.
Boolean SetFrameSize(Number sizeX, Number sizeY)
sizeX | The rectangle width. |
sizeY | The rectangle height. |
Set the width of the display rectangle.
Boolean SetFrameSizeX(Number sizeX)
sizeX | The rectangle width. |
Set the height of the display rectangle.
Boolean SetFrameSizeY(Number sizeY)
sizeY | The rectangle height. |
Get the width of the display rectangle.
Number GetFrameSizeX()
Get the height of the display rectangle.
Number GetFrameSizeY()
Set the horizontal container alignment. The given alignment values specify how the touch area is actually positioned with respect to the node's world position.
Boolean SetContainerAlignment(Murl.IEnums.AlignmentX alignmentX, Murl.IEnums.AlignmentY alignmentY)
alignmentX | The horizontal container alignment. |
alignmentY | The vertical container alignment. |
Set the horizontal container alignment. See SetContainerAlignment().
Boolean SetContainerAlignmentX(Murl.IEnums.AlignmentX alignmentX)
alignmentX | The horizontal container alignment. |
Set the vertical container alignment. See SetContainerAlignment().
Boolean SetContainerAlignmentY(Murl.IEnums.AlignmentY alignmentY)
alignmentY | The vertical container alignment. |
Get the horizontal container alignment.
Murl.IEnums.AlignmentX GetContainerAlignmentX()
Get the vertical container alignment.
Murl.IEnums.AlignmentY GetContainerAlignmentY()
Set the horizontal and vertical borders used for alignment.
Boolean SetBorder(Number borderX, Number borderY)
borderX | The horizontal border. |
borderY | The vertical border. |
Set the horizontal border used for alignment.
Boolean SetBorderX(Number borderX)
borderX | The horizontal border. |
Set the vertical border used for alignment.
Boolean SetBorderY(Number borderY)
borderY | The vertical border. |
Get the horizontal border used for alignment.
Number GetBorderX()
Get the vertical border used for alignment.
Number GetBorderY()