MCPcopy Create free account
hub / github.com/p-ranav/tabulate / Format

Class Format

include/tabulate/format.hpp:61–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59#endif
60
61class Format {
62public:
63 Format &width(size_t value) {
64 width_ = value;
65 return *this;
66 }
67
68 // Number of spaces to prepend to every line of the rendered table. Only
69 // consulted on the table's own format (table.format().indent(n)); row- and
70 // cell-level values have no effect.
71 Format &indent(size_t value) {
72 indent_ = value;
73 return *this;
74 }
75
76 Format &height(size_t value) {
77 height_ = value;
78 return *this;
79 }
80
81 Format &padding(size_t value) {
82 padding_left_ = value;
83 padding_right_ = value;
84 padding_top_ = value;
85 padding_bottom_ = value;
86 return *this;
87 }
88
89 Format &padding_left(size_t value) {
90 padding_left_ = value;
91 return *this;
92 }
93
94 Format &padding_right(size_t value) {
95 padding_right_ = value;
96 return *this;
97 }
98
99 Format &padding_top(size_t value) {
100 padding_top_ = value;
101 return *this;
102 }
103
104 Format &padding_bottom(size_t value) {
105 padding_bottom_ = value;
106 return *this;
107 }
108
109 Format &border(const std::string &value) {
110 border_left_ = value;
111 border_right_ = value;
112 border_top_ = value;
113 border_bottom_ = value;
114 return *this;
115 }
116
117 Format &border_color(Color value) {
118 border_left_color_ = value;

Callers 1

table_internal.hppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected