Tileson
1.3.0
A helpful json parser for Tiled maps
include
tiled
Text.hpp
Go to the documentation of this file.
1
//
2
// Created by robin on 05.08.2019.
3
//
4
5
#ifndef TILESON_TEXT_HPP
6
#define TILESON_TEXT_HPP
7
8
#include <string>
9
10
namespace
tson
11
{
12
class
Text
13
{
14
public
:
15
inline
Text
() =
default
;
21
inline
Text
(std::string _text,
bool
_wrap,
tson::Colori
_color) :
text
{std::move(_text)},
wrap
{_wrap},
color
{_color} {};
22
//Just make it simple
23
std::string
text
;
24
tson::Colori
color
;
25
bool
wrap
{};
26
};
27
}
28
29
#endif
//TILESON_TEXT_HPP
tson::Color< uint8_t >
tson::Text
Definition:
Text.hpp:13
tson::Text::color
tson::Colori color
Definition:
Text.hpp:24
tson::Text::wrap
bool wrap
Definition:
Text.hpp:25
tson::Text::Text
Text()=default
tson::Text::Text
Text(std::string _text, bool _wrap, tson::Colori _color)
Definition:
Text.hpp:21
tson::Text::text
std::string text
Definition:
Text.hpp:21
tson
Definition:
Base64.hpp:12
Generated by
1.9.1