label.h
来自「Unix下的MUD客户端程序」· C头文件 代码 · 共 20 行
H
20 行
// A label is just a window displaying a textclass Label : public Window{public: Label(Window *_parent, const char *_text, int _width, int _height, int _x, int _y) : Window(_parent, _width ?: strlen(_text), _height, None, _x, _y), text(_text) { set_color(bg_blue|fg_white); clear(); } void redraw() { gotoxy(0,0); print(text);}private: String text;};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?