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

Method set_defaults

include/tabulate/format.hpp:699–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697 friend class AsciiDocExporter;
698
699 void set_defaults() {
700 // NOTE: width and height are not set here
701 font_align_ = FontAlign::left;
702 font_style_ = std::vector<FontStyle>{};
703 font_color_ = font_background_color_ = Color::none;
704 padding_left_ = padding_right_ = 1;
705 padding_top_ = padding_bottom_ = 0;
706 border_top_ = border_bottom_ = "-";
707 border_left_ = border_right_ = "|";
708 show_border_left_ = show_border_right_ = show_border_top_ = show_border_bottom_ = true;
709 border_top_color_ = border_top_background_color_ = border_bottom_color_ =
710 border_bottom_background_color_ = border_left_color_ = border_left_background_color_ =
711 border_right_color_ = border_right_background_color_ = Color::none;
712 corner_top_left_ = corner_top_right_ = corner_bottom_left_ = corner_bottom_right_ = "+";
713 corner_top_left_color_ = corner_top_left_background_color_ = corner_top_right_color_ =
714 corner_top_right_background_color_ = corner_bottom_left_color_ =
715 corner_bottom_left_background_color_ = corner_bottom_right_color_ =
716 corner_bottom_right_background_color_ = Color::none;
717 column_separator_ = "|";
718 column_separator_color_ = column_separator_background_color_ = Color::none;
719 multi_byte_characters_ = false;
720 locale_ = "";
721 }
722
723 // Helper methods for word wrapping:
724

Callers 1

createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected