From ffd6cf65e40a7140e82dc6e076c90b5119d41a54 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Tue, 15 Apr 2025 23:00:40 +0000 Subject: windowrules: allow incrementing window props (#9566) --- src/config/ConfigValue.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/config/ConfigValue.cpp (limited to 'src/config/ConfigValue.cpp') diff --git a/src/config/ConfigValue.cpp b/src/config/ConfigValue.cpp new file mode 100644 index 00000000..9f6cc319 --- /dev/null +++ b/src/config/ConfigValue.cpp @@ -0,0 +1,15 @@ +#include "ConfigValue.hpp" +#include "ConfigManager.hpp" +#include "../macros.hpp" + +void local__configValuePopulate(void* const** p, const std::string& val) { + const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val); + + *p = PVHYPRLANG->getDataStaticPtr(); +} + +std::type_index local__configValueTypeIdx(const std::string& val) { + const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val); + const auto ANY = PVHYPRLANG->getValue(); + return std::type_index(ANY.type()); +} \ No newline at end of file -- cgit v1.2.3