DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
ComponentInterfaceAdapters.h File Reference

Namespaces

namespace  Deki
namespace  Deki::ComponentInterfaceAdapters

Typedefs

using Deki::InterfaceAdapter = void* (*)(Component*)

Functions

void Deki::ComponentInterfaceAdapters::Register (uint32_t interfaceId, ComponentType componentType, InterfaceAdapter adapter)
 Registers adapter as the way to get interface interfaceId from a component of type componentType.
void * Deki::ComponentInterfaceAdapters::Query (uint32_t interfaceId, Component *comp)
 The interface interfaceId of comp, or nullptr when it has none.
InterfaceAdapter Deki::ComponentInterfaceAdapters::Find (uint32_t interfaceId, ComponentType componentType, ComponentType baseType)
 The adapter Query would call for a component of this type (exact type first, then its base type), or nullptr.
uint32_t Deki::ComponentInterfaceAdapters::Version ()
 Goes up with every Register.