HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Friends
hi::v1::indent Class Reference

#include <hikogui/codec/indent.hpp>

Public Member Functions

constexpr indent (indent const &other) noexcept=default
 
constexpr indent (indent &&other) noexcept=default
 
constexpr indentoperator= (indent const &other) noexcept=default
 
constexpr indentoperator= (indent &&other) noexcept=default
 
constexpr indent (int spaces, char space=' ') noexcept
 Constructor This constructor will start indentation at depth 0.
 
 operator std::string () const noexcept
 String conversion operator.
 
constexpr indentoperator+= (int rhs) noexcept
 Increase the depth of this indentation.
 
constexpr indentoperator++ () noexcept
 Increment the depth of this indentation.
 

Friends

constexpr friend indent operator+ (indent lhs, int rhs) noexcept
 Get an indentation at increased depth.
 

Detailed Description

Indentation for writing out text files.

This type is used to pass indentation information recursivly to add indentation to text files, like for example json.

Constructor & Destructor Documentation

◆ indent()

constexpr hi::v1::indent::indent ( int spaces,
char space = ' ' )
inlineconstexprnoexcept

Constructor This constructor will start indentation at depth 0.

Parameters
spacesNumber of spaces per indentation.
spaceCharacter used for indentation.

Member Function Documentation

◆ operator std::string()

hi::v1::indent::operator std::string ( ) const
inlinenoexcept

String conversion operator.

◆ operator++()

constexpr indent & hi::v1::indent::operator++ ( )
inlineconstexprnoexcept

Increment the depth of this indentation.

◆ operator+=()

constexpr indent & hi::v1::indent::operator+= ( int rhs)
inlineconstexprnoexcept

Increase the depth of this indentation.

Friends And Related Symbol Documentation

◆ operator+

constexpr friend indent operator+ ( indent lhs,
int rhs )
friend

Get an indentation at increased depth.


The documentation for this class was generated from the following file: