summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
commit48646db55005a0da079bd2c945875dc8225e2f86 (patch)
tree4d7b18cb201682cbb32f1f1677a0935a8e7928a4 /src/text.h
parent9c12fcdfe590f34543fcecc2691b625c408f1746 (diff)
downloadmanaverse-48646db55005a0da079bd2c945875dc8225e2f86.tar.gz
manaverse-48646db55005a0da079bd2c945875dc8225e2f86.tar.bz2
manaverse-48646db55005a0da079bd2c945875dc8225e2f86.tar.xz
manaverse-48646db55005a0da079bd2c945875dc8225e2f86.zip
Move color into gui dir.
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/text.h b/src/text.h
index cade9db18..497792091 100644
--- a/src/text.h
+++ b/src/text.h
@@ -26,7 +26,7 @@
#include "render/graphics.h"
-#include "gui/base/color.hpp"
+#include "gui/color.h"
#include "localconsts.h"
@@ -42,7 +42,7 @@ class Text
*/
Text(const std::string &text, const int x, const int y,
const Graphics::Alignment alignment,
- const gcn::Color *const color, const bool isSpeech = false,
+ const Color *const color, const bool isSpeech = false,
Font *const font = nullptr);
A_DELETE_COPY(Text)
@@ -52,7 +52,7 @@ class Text
*/
virtual ~Text();
- void setColor(const gcn::Color *const color);
+ void setColor(const Color *const color);
int getWidth() const A_WARN_UNUSED
{ return mWidth; }
@@ -80,8 +80,8 @@ class Text
int mXOffset; /**< The offset of mX from the desired x. */
static int mInstances; /**< Instances of text. */
std::string mText; /**< The text to display. */
- const gcn::Color *mColor; /**< The color of the text. */
- const gcn::Color mOutlineColor;
+ const Color *mColor; /**< The color of the text. */
+ const Color mOutlineColor;
bool mIsSpeech; /**< Is this text a speech bubble? */
protected:
@@ -93,7 +93,7 @@ class FlashText final : public Text
public:
FlashText(const std::string &text, const int x, const int y,
const Graphics::Alignment alignment,
- const gcn::Color *const color,
+ const Color *const color,
Font *const font = nullptr);
A_DELETE_COPY(FlashText)