ObjectGst.setName

Sets the name of object, or gives object a guaranteed unique name (if name is null). This function makes a copy of the provided name, so the caller retains ownership of the name it sent.

class ObjectGst
bool
setName
(
string name = null
)

Parameters

name string

new name of object

Return Value

Type: bool

true if the name could be set. Since Objects that have a parent cannot be renamed, this function returns false in those cases.

MT safe. This function grabs and releases object's LOCK.