l_layer_getChildren: Get children of a group layer

Description Usage Arguments Value See Also Examples

View source: R/l_layer.R

Description

Returns the ids of a group layer's children.

Usage

1
l_layer_getChildren(widget, layer = "root")

Arguments

widget

widget path or layer object of class 'l_layer'

layer

layer id. If the widget argument is of class 'l_layer' then the layer argument is not used

Value

Character vector with ids of the childrens. To create layer handles (i.e. objects of class 'l_layer') use the l_create_handle function.

See Also

l_layer, l_layer_getParent

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if(interactive()){

p <- l_plot()

g <- l_layer_group(p)
l1 <- l_layer_rectangle(p, x=0:1, y=0:1, parent=g)
l2 <- l_layer_oval(p, x=0:1, y=0:1, color='thistle', parent=g)

l_layer_getChildren(p, g)

}

loon documentation built on June 14, 2021, 9:07 a.m.