7#include "../utility/utility.hpp"
8#include "../macros.hpp"
10hi_export_module(hikogui.codec.indent);
12namespace hi {
inline namespace v1 {
20 [[nodiscard]]
constexpr ~indent()
noexcept =
default;
21 [[nodiscard]]
constexpr indent()
noexcept =
default;
24 [[nodiscard]]
constexpr indent& operator=(
indent const&
other)
noexcept =
default;
33 [[nodiscard]]
constexpr indent(
int spaces,
char space =
' ') noexcept : _space(space), _spaces(spaces), _depth(0) {}
60 [[nodiscard]]
constexpr friend indent
operator+(indent lhs,
int rhs)
noexcept
@ other
The gui_event does not have associated data.
Definition gui_event_variant.hpp:22
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
The HikoGUI API version 1.
Definition lookahead_iterator.hpp:6
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Indentation for writing out text files.
Definition indent.hpp:18
constexpr indent & operator+=(int rhs) noexcept
Increase the depth of this indentation.
Definition indent.hpp:44
constexpr friend indent operator+(indent lhs, int rhs) noexcept
Get an indentation at increased depth.
Definition indent.hpp:60
constexpr indent(int spaces, char space=' ') noexcept
Constructor This constructor will start indentation at depth 0.
Definition indent.hpp:33
constexpr indent & operator++() noexcept
Increment the depth of this indentation.
Definition indent.hpp:52