lobject.h Header
Types
| class | LObject | The LObject class is used to establish a hierarchy between Layers objects. |
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