Skip to content
Snippets Groups Projects
PElement.cpp 348 B
Newer Older
gyroninja's avatar
gyroninja committed
#include "PElement.h"
#include "../components/TextComponent.h"
#include "../../html/TextNode.h"
std::unique_ptr<Component> PElement::renderer(const Node &node, int y, int windowWidth, int windowHeight) {
    return std::make_unique<TextComponent>(static_cast<const TextNode&>(node).text, 0, y, 12, false, 0x000000FF, windowWidth, windowHeight);