Skip to main content

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:

ParameterTypeDescription
widthnumberThe width of the node.
heightnumberThe height of the node.