.. _program_listing_file_include_utils.hpp: Program Listing for File utils.hpp ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/utils.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef RIG_RECONFIGURE_UTILS_HPP #define RIG_RECONFIGURE_UTILS_HPP #include #include #include #include // will drag system OpenGL headers #include 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::string getFormatStringFromStep(double step, int max_digits = 10); bool hasBoundedRange(const rcl_interfaces::msg::ParameterDescriptor& param); bool areDoublesEqual(double x, double y, double ulp = 100.0); double snapToDoubleRange(double value, double from_value, double to_value, double step); int64_t snapToIntegerRange(int64_t value, int64_t from_value, int64_t to_value, uint64_t step); 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