First opengl/x11/window integration.
This commit is contained in:
parent
7c6a92f4ec
commit
cea3d2c39f
30 changed files with 254 additions and 72 deletions
|
@ -94,7 +94,7 @@ void TextBox::onPaintEvent(const PaintEvent* event)
|
|||
auto textLayer = VisualLayer::Create();
|
||||
auto textElement = TextNode::Create(line, loc);
|
||||
textElement->setFillColor(mBackgroundColor);
|
||||
textLayer->setText(std::move(textElement));
|
||||
textLayer->setTextNode(std::move(textElement));
|
||||
mMyLayers.push_back(std::move(textLayer));
|
||||
offset += 20;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue