mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Moved the Alignment enumerator from Font to GuiComponent.
This commit is contained in:
parent
503ff07d81
commit
8361c4f15c
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue