AlignNode Event
Description:
This is just a demonstration record showing some signal slot events that are used. And they are meant to be used for layout updates of the AlignNode.
Usage:
-- you can register for these events using codes
alignNode:addTo(parentNode)
alignNode:slot("AlignLayout", function(width: number, height: number)
print("The layout of the AlignNode is updated", width, height)
end)
AlignLayout
Type: Node Event.
Description:
Triggers when the layout of the AlignNode
is updated.
Signature:
["AlignLayout"]: function(width: number, height: number)
Parameters:
Parameter | Type | Description |
---|---|---|
width | number | The width of the node. |
height | number | The height of the node. |