You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
602 B
16 lines
602 B
#include "STRONGElement.h" |
|
|
|
STRONGElement::STRONGElement() { |
|
isInline = true; |
|
} |
|
|
|
std::unique_ptr<Component> STRONGElement::renderer(const ElementRenderRequest &request) { |
|
TextNode *textNode = dynamic_cast<TextNode*>(request.node.get()); |
|
if (textNode) { |
|
//if (node->parent->children.size() == 1) { |
|
std::unique_ptr<Component> component = std::make_unique<TextComponent>(textNode->text, 0, 0, 12, true, 0x000000FF, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight); |
|
return component; |
|
//} |
|
} |
|
return nullptr; |
|
}
|
|
|