Wrapper:child

Returns the child element of this wrapper, if any.

Usage

wrapper:child()

Returns

Name Type Description
child_element UIElement | nil Child element, or nil if no child has been set.

Examples

local rounded_corners = crystal.RoundedCorners:new();
local image = rounded_corners:set_child(crystal.Image:new());
assert(rounded_corners:child() == image);

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