libcopp
2.2.0
|
#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 92 of file shell_font.h.
util::cli::shell_font::shell_font | ( | int | iFlag = 0 | ) |
|
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 260 of file shell_font.cpp.
References m_iFlag.
|
static |
生成带样式的文本
[in] | strInput | 原始文本 |
[in] | iFlag | 样式 |
Definition at line 249 of file shell_font.cpp.
References util::cli::_check_term_color_status(), GetStyleCloseCode(), and GetStyleCode().
|
static |
获取样式的关闭命令
Definition at line 134 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 132 of file shell_font.cpp.
References m_iFlag.
Referenced by util::cli::shell_stream::shell_stream_opr::close(), and GenerateString().
|
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 94 of file shell_font.h.
Referenced by GenerateString(), and GetStyleCode().