From 615a96f9d8cb222368806d951c7fff2c3584cc04 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 19 Feb 2021 17:36:10 +0100 Subject: [PATCH] api: Improved documentation --- plugins/libimhex/include/hex/api/content_registry.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/libimhex/include/hex/api/content_registry.hpp b/plugins/libimhex/include/hex/api/content_registry.hpp index 8e657ab28..b4659fc84 100644 --- a/plugins/libimhex/include/hex/api/content_registry.hpp +++ b/plugins/libimhex/include/hex/api/content_registry.hpp @@ -156,6 +156,7 @@ namespace hex { static std::vector& getEntries(); }; + /* Data Processor Node Registry. Allows adding new processor nodes to be used in the data processor */ struct DataProcessorNode { using CreatorFunction = std::function; struct Entry { @@ -176,6 +177,7 @@ namespace hex { static void add(const Entry &entry); }; + /* Language Registry. Allows together with the LangEntry class and the _lang user defined literal to add new languages */ struct Language { static void registerLanguage(std::string_view name, std::string_view languageCode); static void addLocalizations(std::string_view languageCode, const LanguageDefinition &definition); @@ -184,6 +186,7 @@ namespace hex { static std::map>& getLanguageDefinitions(); }; + /* Interface Registry. Allows adding new items to various interfaces */ struct Interface { using DrawCallback = std::function;