Initial commit.
This commit is contained in:
commit
59c6161fdb
134 changed files with 4751 additions and 0 deletions
31
src/ui_elements/widgets/elements/TextElement.h
Normal file
31
src/ui_elements/widgets/elements/TextElement.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "DiscretePoint.h"
|
||||
|
||||
class TextElement
|
||||
{
|
||||
std::string mContent;
|
||||
DiscretePoint mLocation;
|
||||
std::string mFontLabel;
|
||||
|
||||
public:
|
||||
|
||||
TextElement(const std::string& content, const DiscretePoint& loc);
|
||||
|
||||
~TextElement();
|
||||
|
||||
static std::shared_ptr<TextElement> Create(const std::string& content, const DiscretePoint& loc);
|
||||
|
||||
DiscretePoint GetLocation();
|
||||
|
||||
std::string GetContent();
|
||||
|
||||
void SetContent(const std::string& content);
|
||||
|
||||
std::string GetFontLabel();
|
||||
};
|
||||
|
||||
using TextElementPtr = std::shared_ptr<TextElement>;
|
Loading…
Add table
Add a link
Reference in a new issue