feat: Added new pattern inline visualizers

This commit is contained in:
WerWolv
2023-07-04 22:18:06 +02:00
parent 33566137c2
commit 86c4c8fa96
8 changed files with 119 additions and 33 deletions

View File

@@ -258,6 +258,7 @@ namespace hex {
};
std::map<std::string, Visualizer> &getVisualizers();
std::map<std::string, Visualizer> &getInlineVisualizers();
std::map<std::string, pl::api::PragmaHandler> &getPragmas();
std::vector<impl::FunctionDefinition> &getFunctions();
@@ -317,6 +318,15 @@ namespace hex {
*/
void addVisualizer(const std::string &name, const impl::VisualizerFunctionCallback &func, u32 parameterCount);
/**
* @brief Adds a new inline visualizer to the pattern language
* @note Inline visualizers are extensions to the [[hex::inline_visualize]] attribute, used to visualize data
* @param name The name of the visualizer
* @param func The function callback
* @param parameterCount The amount of parameters the function takes
*/
void addInlineVisualizer(const std::string &name, const impl::VisualizerFunctionCallback &func, u32 parameterCount);
}
/* View Registry. Allows adding of new windows */