Skip to content
Snippets Groups Projects
Commit c9ab5fff authored by gyroninja's avatar gyroninja
Browse files

Added block quotes element

parent 8963dee7
No related branches found
No related tags found
No related merge requests found
#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);
}
#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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment