遗漏的部分
This commit is contained in:
1 parent
84fb370da8
commit
0493383ee8
63 files changed
+28237
-4
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "lci/Shape.h"
|
||||
#include "lci/字体绘制器.h"
|
||||
namespace qing {
|
||||
class CharShape: public Shape {
|
||||
public:
|
||||
CharShape(int w, int h, int x, int y, wchar_t wc)
|
||||
: Shape(w, h, x, y), wc(wc), 绘制(w, h) {}
|
||||
|
||||
virtual void Draw(Drawable &d, Color clr) override{
|
||||
int w = getw();
|
||||
int h = geth();
|
||||
int x = getx();
|
||||
int y = gety();
|
||||
绘制.drawvfont(&d, x, y, wc, clr);
|
||||
}
|
||||
|
||||
private:
|
||||
wchar_t wc;
|
||||
字体绘制器 绘制;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user