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