ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
Object Class Reference

Detailed Description

Base class for anything

Inheritance diagram for Object:
InputEvent Node Resource Tween Manager Resource Style Widget Window Window

Public Member Functions

void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual string toString () const
 

Member Function Documentation

void connect ( const Signal::signal &  name,
const function< void ()> &  handler 
)

Connects a signal by name to a function

Parameters
namesignal name.
handlerthe member function to call when emit() is called
void connect ( const Signal::signal &  name,
const Signal::Handler handler 
)

Connects a signal by name to a function

Parameters
namesignal name.
handlerthe member function to call when emit() is called
void emit ( const Signal::signal &  name,
void *  params = nullptr 
)

Emits a signal by name by calling all the connected function in the connect order

Parameters
namesignal name
paramsparameters to pass to the function connected to the signal
virtual string toString ( ) const
nodiscardinlinevirtual

Converts the objet to a readable text

Reimplemented in z0::Node::toString(), z0::Window::toString(), z0::Resource::toString()