libcopp 2.3.1
|
#include <shell_font.h>
Public Member Functions | |
shell_font (int iFlag=0) | |
virtual | ~shell_font () |
std::string | GenerateString (const std::string &strInput) |
std::string | GetStyleCode () |
Static Public Member Functions | |
static std::string | GenerateString (const std::string &strInput, int iFlag) |
static std::string | GetStyleCode (int iFlag) |
static std::string | GetStyleCloseCode () |
Private Attributes | |
int | m_iFlag |
Definition at line 106 of file shell_font.h.
|
explicit |
|
virtual |
Definition at line 77 of file shell_font.cpp.
std::string util::cli::shell_font::GenerateString | ( | const std::string & | strInput | ) |
生成带样式的文本
[in] | strInput | 原始文本 |
Definition at line 258 of file shell_font.cpp.
References GenerateString(), and m_iFlag.
Referenced by GenerateString().
|
static |
生成带样式的文本
[in] | strInput | 原始文本 |
[in] | iFlag | 样式 |
Definition at line 247 of file shell_font.cpp.
References util::cli::_check_term_color_status(), GetStyleCloseCode(), and GetStyleCode().
|
static |
获取样式的关闭命令
Definition at line 132 of file shell_font.cpp.
References SHELL_FONT_SET_OPT_END.
Referenced by GenerateString(), and util::cli::shell_stream::shell_stream_opr::reset().
std::string util::cli::shell_font::GetStyleCode | ( | ) |
获取样式的生成命令
Definition at line 130 of file shell_font.cpp.
References GetStyleCode(), and m_iFlag.
Referenced by util::cli::shell_stream::shell_stream_opr::close(), GenerateString(), and GetStyleCode().
|
static |
获取样式的生成命令
[in] | iFlag | 样式 |
Definition at line 79 of file shell_font.cpp.
References util::cli::shell_font_style::SHELL_FONT_SPEC_BOLD, util::cli::shell_font_style::SHELL_FONT_SPEC_DARK, util::cli::shell_font_style::SHELL_FONT_SPEC_FLASH, and util::cli::shell_font_style::SHELL_FONT_SPEC_UNDERLINE.
|
private |
Definition at line 108 of file shell_font.h.
Referenced by GenerateString(), and GetStyleCode().