Layers 2.0 is archived. The latest version is 3.0. Read the 3.0 docs

lobject.h Header

#include <Layers/lobject.h>

Types

class LObject The LObject class is used to establish a hierarchy between Layers objects.

Functions

T * lMake(LObject * parent, Args &&... args)

Function Documentation

template<typename T, typename... Args>
T * lMake(LObject * parent, Args &&... args)

Helper function to create and parent an LObject-derived instance.

Creates a new object of type T with the given constructor arguments, adds it as a child of parent, and returns a pointer to the new object. The parent takes ownership of the created object.

Example: auto* attr = lMake(parentObj, "name", value);

Appearance
Theme
—