Wrapper:set_child
Sets the child element wrapped by this wrapper.
Usage
wrapper:set_child(child)
Arguments
| Name | Type | Description |
|---|---|---|
child | UIElement | Child element. |
Examples
local rounded_corners = crystal.RoundedCorners:new();
local image = rounded_corners:set_child(crystal.Image:new());
assert(rounded_corners:child() == image);