| 55 | namespace tabulate { |
| 56 | |
| 57 | class Format { |
| 58 | public: |
| 59 | Format &width(size_t value) { |
| 60 | width_ = value; |
| 61 | return *this; |
| 62 | } |
| 63 | |
| 64 | Format &height(size_t value) { |
| 65 | height_ = value; |
| 66 | return *this; |
| 67 | } |
| 68 | |
| 69 | Format &padding(size_t value) { |
| 70 | padding_left_ = value; |
| 71 | padding_right_ = value; |
| 72 | padding_top_ = value; |
| 73 | padding_bottom_ = value; |
| 74 | return *this; |
| 75 | } |
| 76 | |
| 77 | Format &padding_left(size_t value) { |
| 78 | padding_left_ = value; |
| 79 | return *this; |
| 80 | } |
| 81 | |
| 82 | Format &padding_right(size_t value) { |
| 83 | padding_right_ = value; |
| 84 | return *this; |
| 85 | } |
| 86 | |
| 87 | Format &padding_top(size_t value) { |
| 88 | padding_top_ = value; |
| 89 | return *this; |
| 90 | } |
| 91 | |
| 92 | Format &padding_bottom(size_t value) { |
| 93 | padding_bottom_ = value; |
| 94 | return *this; |
| 95 | } |
| 96 | |
| 97 | Format &border(const std::string &value) { |
| 98 | border_left_ = value; |
| 99 | border_right_ = value; |
| 100 | border_top_ = value; |
| 101 | border_bottom_ = value; |
| 102 | return *this; |
| 103 | } |
| 104 | |
| 105 | Format &border_color(Color value) { |
| 106 | border_left_color_ = value; |
| 107 | border_right_color_ = value; |
| 108 | border_top_color_ = value; |
| 109 | border_bottom_color_ = value; |
| 110 | return *this; |
| 111 | } |
| 112 | |
| 113 | Format &border_background_color(Color value) { |
| 114 | border_left_background_color_ = value; |
nothing calls this directly
no outgoing calls
no test coverage detected