listchildren

guerilla.listchildren(node, type=None, pattern='', recursive=False)

Returns a list of nodes of a given class, matching a given name pattern. See children for more details on parameters.

The listchildren function is written as:

LUA{ function listchildren (…)

local list = {} for node in children (…) do

table.insert (list, node)

end return list

end }

param node:The node to iterate
type node:Node
param type:A class the children must belong to to be visited by the iterator or “Node” if not specified
type type:str
param pattern:A Lua’s pattern used to check the name of the node, or a function that filter the node. See Lua’s pattern documentation.
type pattern:str or function
param recursive:
 if true, traverse the children recursively.
type recursive:bool