scatter 0.1.0
TextOptions.hpp
1/*
2 * Copyright (C) Tobias Löw (tobi.loew@protonmail.ch)
3 *
4 * This file is part of Scatter
5 *
6 * Scatter is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Scatter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Scatter. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <scatter/Options.hpp>
23
24namespace scatter
25{
32 {
33 public:
39
45
50 TextOptions &setSize(const int &size);
51
56 TextOptions &setRotation(const double &rotation);
57
62 TextOptions &setColour(const Colour &colour);
63
68 TextOptions &setAnchor(const Anchor &anchor);
69
74 TextOptions &setBold(const bool &bold);
75
80 const int &getSize() const;
81
86 const double &getRotation() const;
87
92 const Colour &getColour() const;
93
98 const Anchor &getAnchor() const;
99
104 const bool &getBold() const;
105
106 private:
108 int size_;
110 double rotation_;
112 Colour colour_;
114 Anchor anchor_;
116 bool bold_;
117 };
118} // namespace scatter
define a RGBA colour
Definition Colour.hpp:34
[brief description]
Definition TextOptions.hpp:32
TextOptions & setAnchor(const Anchor &anchor)
[brief description]
const Colour & getColour() const
[brief description]
TextOptions & setBold(const bool &bold)
[brief description]
TextOptions()
[brief description]
TextOptions & setSize(const int &size)
[brief description]
const Anchor & getAnchor() const
[brief description]
const int & getSize() const
[brief description]
const double & getRotation() const
[brief description]
TextOptions & setRotation(const double &rotation)
[brief description]
const bool & getBold() const
[brief description]
TextOptions & setColour(const Colour &colour)
[brief description]
~TextOptions()
[brief description]