1 | // Aseprite UI Library |
---|---|
2 | // Copyright (C) 2018 Igara Studio S.A. |
3 | // Copyright (C) 2001-2017 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifdef HAVE_CONFIG_H |
9 | #include "config.h" |
10 | #endif |
11 | |
12 | #include "os/font.h" |
13 | #include "ui/label.h" |
14 | #include "ui/message.h" |
15 | #include "ui/size_hint_event.h" |
16 | #include "ui/theme.h" |
17 | |
18 | namespace ui { |
19 | |
20 | Label::Label(const std::string& text) |
21 | : Widget(kLabelWidget) |
22 | { |
23 | enableFlags(IGNORE_MOUSE); |
24 | setAlign(LEFT | MIDDLE); |
25 | setText(text); |
26 | initTheme(); |
27 | } |
28 | |
29 | } // namespace ui |
30 |