遗漏的部分

This commit is contained in:
qing committed 2026-08-02 21:21:03 +08:00
1 parent 84fb370da8
commit 0493383ee8
63 files changed
+28237 -4

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include "Area.h"
#include "InputBox.h"
#include <memory>
#include <mutex>
namespace qing {
/*
* CmdArea(命令区域)是一种特殊的Area区域
*
* 基层绘制方法我们已经在Area中实现了
*/
class CmdArea: public Area {
public:
CmdArea(Drawable *d, int w, int h, int x, int y, int rotate =0, int fontsize=18, bool hasBox = false);
void Input(char c);
void ClearInput();
virtual void print(char *utf8, int d=0); /* FIXME: d不知道是什么*/
void update_input();
void delete_input();
void clearBox();
std::string get_input_and_clear();
private:
int x_f=0, y_f=0;
std::unique_ptr<InputBox> area;
std::mutex lock;
std::string input = "";
void handle_ansi_code(char *buffer);
bool hasBox;
};
}