HorizontalListJoint:set_grow

Sets the growth factor on this list element.

Usage

horizontal_list_joint:set_grow(factor)

Arguments

Name Type Description
factor number Growth factor.

Examples

local list = crystal.HorizontalList:new();
local image = list:add_child(crystal.Image:new());
image:set_grow(2);
print(image:grow()); -- Prints "2"

This site uses Just the Docs, a documentation theme for Jekyll.