diff --git a/es-core/src/GuiComponent.h b/es-core/src/GuiComponent.h index edeb33e10..109496a08 100644 --- a/es-core/src/GuiComponent.h +++ b/es-core/src/GuiComponent.h @@ -34,6 +34,14 @@ class InputConfig; class ThemeData; class Window; +enum Alignment { + ALIGN_LEFT, + ALIGN_CENTER, // Used for both horizontal and vertical alignments. + ALIGN_RIGHT, + ALIGN_TOP, + ALIGN_BOTTOM +}; + class GuiComponent { public: diff --git a/es-core/src/resources/Font.h b/es-core/src/resources/Font.h index d7b54dc7f..941920c96 100644 --- a/es-core/src/resources/Font.h +++ b/es-core/src/resources/Font.h @@ -10,6 +10,7 @@ #ifndef ES_CORE_RESOURCES_FONT_H #define ES_CORE_RESOURCES_FONT_H +#include "GuiComponent.h" #include "ThemeData.h" #include "renderers/Renderer.h" #include "resources/ResourceManager.h" @@ -35,14 +36,6 @@ class TextCache; #define FONT_PATH_REGULAR ":/fonts/Akrobat-SemiBold.ttf" #define FONT_PATH_BOLD ":/fonts/Akrobat-Bold.ttf" -enum Alignment { - ALIGN_LEFT, - ALIGN_CENTER, // Used for both horizontal and vertical alignments. - ALIGN_RIGHT, - ALIGN_TOP, - ALIGN_BOTTOM -}; - // A TrueType Font renderer that uses FreeType and OpenGL. // The library is automatically initialized when it's needed. class Font : public IReloadable