5#include "../utility/utility.hpp"
6#include "../macros.hpp"
12#include <system_error>
14hi_export_module(hikogui.settings.user_settings : intf);
16namespace hi {
inline namespace v1 {
19[[
nodiscard]] std::expected<long long, std::error_code> get_user_setting_integral(std::string_view key)
noexcept;
76template<std::
integral T>
79 if (hilet value = get_user_setting_integral(key)) {
83 return std::unexpected{std::make_error_code(std::errc::result_out_of_range)};
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
std::error_code delete_user_settings() noexcept
Delete all user-setting for the application.
Definition user_settings_win32_impl.hpp:77
std::expected< T, std::error_code > get_user_setting(std::string_view key) noexcept=delete
Get a user-setting for the application.
Definition user_settings_intf.hpp:77
std::expected< std::string, std::error_code > get_user_setting_string(std::string_view key) noexcept
Definition user_settings_win32_impl.hpp:26
std::error_code delete_user_setting(std::string_view key) noexcept
Delete a user-setting for the application.
Definition user_settings_win32_impl.hpp:72
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
std::error_code set_user_setting(std::string_view key, std::string_view value) noexcept
Set a user-setting for the application.
Definition user_settings_win32_impl.hpp:62