make


Description:

[ CCode ( returns_floating_reference = true ) ]
public static Element? make (string factoryname, string? name = null)

Create a new element of the type defined by the given element factory.

If name is null, then the element will receive a guaranteed unique name, consisting of the element factory name and a number. If name is given, it will be given the name supplied.

Parameters:

factoryname

a named factory to instantiate

name

name of new element, or null to automatically create a unique name

Returns:

new Element or null if unable to create element