cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::utils::print_style_t Struct Reference

打印风格设置/Print style settings More...

#include <print.hpp>

Classes

struct  box_chars_t
 

Public Attributes

struct toolbox::utils::print_style_t::box_chars_t box
 
std::string border_h = "-"
 水平边框字符/Horizontal border character
 
std::string border_v = "|"
 垂直边框字符/Vertical border character
 
std::string padding = " "
 单元格填充/Cell padding
 
bool show_header = true
 是否显示表头/Show header or not
 
bool show_border = true
 是否显示边框/Show border or not
 
size_t min_width = 0
 最小列宽/Minimum column width
 
align_t alignment = align_t::LEFT
 默认对齐方式/Default alignment
 
color_t header_fg = color_t::DEFAULT
 表头前景色/Header foreground color
 
color_t header_bg = color_t::DEFAULT
 表头背景色/Header background color
 
color_t data_fg = color_t::DEFAULT
 数据前景色/Data foreground color
 
color_t data_bg = color_t::DEFAULT
 数据背景色/Data background color
 
color_t border_color = color_t::DEFAULT
 边框颜色/Border color
 
bool use_colors = true
 是否使用颜色/Use color or not
 

Detailed Description

打印风格设置/Print style settings

用于自定义表格和容器打印的样式/Used to customize the style of table and container printing

Member Data Documentation

◆ alignment

align_t toolbox::utils::print_style_t::alignment = align_t::LEFT

默认对齐方式/Default alignment

◆ border_color

color_t toolbox::utils::print_style_t::border_color = color_t::DEFAULT

边框颜色/Border color

◆ border_h

std::string toolbox::utils::print_style_t::border_h = "-"

水平边框字符/Horizontal border character

◆ border_v

std::string toolbox::utils::print_style_t::border_v = "|"

垂直边框字符/Vertical border character

◆ box

struct toolbox::utils::print_style_t::box_chars_t toolbox::utils::print_style_t::box

◆ data_bg

color_t toolbox::utils::print_style_t::data_bg = color_t::DEFAULT

数据背景色/Data background color

◆ data_fg

color_t toolbox::utils::print_style_t::data_fg = color_t::DEFAULT

数据前景色/Data foreground color

◆ header_bg

color_t toolbox::utils::print_style_t::header_bg = color_t::DEFAULT

表头背景色/Header background color

◆ header_fg

color_t toolbox::utils::print_style_t::header_fg = color_t::DEFAULT

表头前景色/Header foreground color

◆ min_width

size_t toolbox::utils::print_style_t::min_width = 0

最小列宽/Minimum column width

◆ padding

std::string toolbox::utils::print_style_t::padding = " "

单元格填充/Cell padding

◆ show_border

bool toolbox::utils::print_style_t::show_border = true

是否显示边框/Show border or not

◆ show_header

bool toolbox::utils::print_style_t::show_header = true

是否显示表头/Show header or not

◆ use_colors

bool toolbox::utils::print_style_t::use_colors = true

是否使用颜色/Use color or not


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