|
HikoGUI
A low latency retained GUI
|
#include <hikogui/l10n/translate.hpp>
Public Member Functions | |
| translate_args (translate_args &&) noexcept=default | |
| translate_args (translate_args const &) noexcept=default | |
| translate_args & | operator= (translate_args &&) noexcept=default |
| translate_args & | operator= (translate_args const &) noexcept=default |
| template<typename... Args> | |
| translate_args (Args const &...args) noexcept | |
| Construct a translate arguments. | |
| std::unique_ptr< translate_args_base > | unique_copy () const noexcept override |
| Make a unique copy of the arguments. | |
| bool | equal_to (translate_args_base const &rhs) const noexcept override |
| std::string | format (std::string_view fmt) const noexcept override |
| Format text from the arguments and the given format string. | |
| std::string | format (std::locale const &loc, std::string_view fmt) const noexcept override |
| Format text from the arguments and the given format string. | |
| template<std::size_t I> | |
| long long | n_recurse () const noexcept |
| long long | n () const noexcept override |
| The numeric value of the first numeric argument. | |
Public Member Functions inherited from v1::detail::translate_args_base | |
| translate_args_base (translate_args_base const &)=default | |
| translate_args_base (translate_args_base &&)=default | |
| translate_args_base & | operator= (translate_args_base const &)=default |
| translate_args_base & | operator= (translate_args_base &&)=default |
| bool friend | operator== (translate_args_base const &lhs, translate_args_base const &rhs) noexcept |
Delayed formatting.
This class will capture all the arguments so that it may be passed to another thread. Then call the function operator to do the actual formatting.
|
inlinenoexcept |
Construct a translate arguments.
All arguments are passed by forwarding-references so that values can be moved into the storage of the translate object.
Arguments passed by reference will be copied. Arguments passed by std::string_view or std::span will be copied into a std::string or std::vector.
Literal strings will not be copied, instead a pointer is taken.
| args | The parameters to std::format excluding format string and locale. |
|
inlineoverridevirtualnoexcept |
Implements v1::detail::translate_args_base.
|
inlineoverridevirtualnoexcept |
Format text from the arguments and the given format string.
| loc | The locale to use when formatting. |
| fmt | The format string. |
Implements v1::detail::translate_args_base.
|
inlineoverridevirtualnoexcept |
Format text from the arguments and the given format string.
| fmt | The format string. |
Implements v1::detail::translate_args_base.
|
inlineoverridevirtualnoexcept |
The numeric value of the first numeric argument.
Implements v1::detail::translate_args_base.
|
inlineoverridevirtualnoexcept |
Make a unique copy of the arguments.
Implements v1::detail::translate_args_base.