Screen.addComponent

Adds a component to a layer.

class Screen
final
void
addComponent
(
size_t index
,,
string name
,
bool cleanOldComponent = true
)

Parameters

index size_t

The index of the layer to add the component to.

component Component

The component to add.

name string

The name of the component. This must be unique for the layer, otherwise an existing component will be replaced.

cleanOldComponent bool

Boolean determining whether the old component's memory should be cleaned or not. Only used if "NOVELATE_MANUALMEMORY" is enabled.

Meta