Adds baseX property for InputWindowElement.

This commit is contained in:
2021-08-26 15:05:41 +09:00
parent a07c61675e
commit bc56befc8e
5 changed files with 60 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ class Frame : public iDrawable, public iWritable {
Frame& operator=(Frame&&) = delete;
Frame& operator=(const Frame&) = delete;
Frame(size_t dres, size_t wres) {
Frame(uint32_t w, uint32_t h, size_t dres, size_t wres) : w(w), h(h) {
draw_.reserve(dres);
write_.reserve(wres);
}
@@ -49,6 +49,8 @@ class Frame : public iDrawable, public iWritable {
std::string input;
uint32_t w, h;
private:
std::vector<const iDrawable*> draw_;
std::vector<const iWritable*> write_;