Struct padding_info

Synopsis

#include <include/spdlog/pattern_formatter.h>

struct padding_info

Description

padding information.

Methods

padding_info overload
enabled

Source

Lines 23-48 in include/spdlog/pattern_formatter.h.

struct padding_info
{
    enum class pad_side
    {
        left,
        right,
        center
    };

    padding_info() = default;
    padding_info(size_t width, padding_info::pad_side side, bool truncate)
        : width_(width)
        , side_(side)
        , truncate_(truncate)
        , enabled_(true)
    {}

    bool enabled() const
    {
        return enabled_;
    }
    size_t width_ = 0;
    pad_side side_ = pad_side::left;
    bool truncate_ = false;
    bool enabled_ = false;
};





Add Discussion

Log in to comment