Program Listing for File utils.hpp
↰ Return to documentation for file (include/utils.hpp)
#ifndef RIG_RECONFIGURE_UTILS_HPP
#define RIG_RECONFIGURE_UTILS_HPP
#include <string>
#include <imgui.h>
#include <filesystem>
#include <GLFW/glfw3.h> // will drag system OpenGL headers
struct Status {
enum class Type { NONE, NO_NODES_AVAILABLE, PARAMETER_CHANGED, SERVICE_TIMEOUT };
Type type = Type::NONE;
std::string text;
};
void highlightedText(const std::string &text, std::size_t start, std::size_t end,
const ImVec4 &highlightColor);
bool highlightedSelectableText(const std::string &text, std::size_t start, std::size_t end,
const ImVec4 &highlightColor);
std::filesystem::path findResourcePath(const std::string &execPath);
void loadWindowIcon(GLFWwindow *windowPtr, const std::filesystem::path &resourcePath);
void glfw_error_callback(int error, const char *description);
#endif //RIG_RECONFIGURE_UTILS_HPP