2 changed files with 19 additions and 0 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
#include "BLOCKQUOTEElement.h" |
||||
#include "../TextNode.h" |
||||
|
||||
std::unique_ptr<Component> BLOCKQUOTEElement::render(const Node &node, int y, int windowWidth, int windowHeight) { |
||||
return std::make_unique<TextComponent>(static_cast<const TextNode&>(node).text, 0, y, 12, false, windowWidth, windowHeight); |
||||
} |
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
#ifndef BLOCKQUOTEELEMENT_H |
||||
#define BLOCKQUOTEELEMENT_H |
||||
|
||||
#include "../../graphics/opengl/components/Component.h" |
||||
#include "../../graphics/opengl/components/TextComponent.h" |
||||
#include "../TextNode.h" |
||||
|
||||
class BLOCKQUOTEElement { |
||||
public: |
||||
static std::unique_ptr<Component> render(const Node &node, int y, int windowWidth, int windowHeight); |
||||
}; |
||||
|
||||
#endif |
Loading…
Reference in new issue