Public Types | Public Member Functions | Public Attributes | List of all members
spdlog::details::padding_info Struct Reference

#include <pattern_formatter.h>

Public Types

enum  pad_side { left, right, center }
 

Public Member Functions

 padding_info ()=default
 
 padding_info (size_t width, padding_info::pad_side side)
 
bool enabled () const
 

Public Attributes

const size_t width_ = 0
 
const pad_side side_ = left
 

Detailed Description

Definition at line 29 of file pattern_formatter.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

spdlog::details::padding_info::padding_info ( )
default
spdlog::details::padding_info::padding_info ( size_t  width,
padding_info::pad_side  side 
)
inline

Definition at line 39 of file pattern_formatter.h.

40  : width_(width)
41  , side_(side)
42  {
43  }
const double width

Member Function Documentation

bool spdlog::details::padding_info::enabled ( ) const
inline

Definition at line 45 of file pattern_formatter.h.

46  {
47  return width_ != 0;
48  }

Member Data Documentation

const pad_side spdlog::details::padding_info::side_ = left

Definition at line 50 of file pattern_formatter.h.

const size_t spdlog::details::padding_info::width_ = 0

Definition at line 49 of file pattern_formatter.h.


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