mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15: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 ThemeData;
|
||||||
class Window;
|
class Window;
|
||||||
|
|
||||||
|
enum Alignment {
|
||||||
|
ALIGN_LEFT,
|
||||||
|
ALIGN_CENTER, // Used for both horizontal and vertical alignments.
|
||||||
|
ALIGN_RIGHT,
|
||||||
|
ALIGN_TOP,
|
||||||
|
ALIGN_BOTTOM
|
||||||
|
};
|
||||||
|
|
||||||
class GuiComponent
|
class GuiComponent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#ifndef ES_CORE_RESOURCES_FONT_H
|
#ifndef ES_CORE_RESOURCES_FONT_H
|
||||||
#define ES_CORE_RESOURCES_FONT_H
|
#define ES_CORE_RESOURCES_FONT_H
|
||||||
|
|
||||||
|
#include "GuiComponent.h"
|
||||||
#include "ThemeData.h"
|
#include "ThemeData.h"
|
||||||
#include "renderers/Renderer.h"
|
#include "renderers/Renderer.h"
|
||||||
#include "resources/ResourceManager.h"
|
#include "resources/ResourceManager.h"
|
||||||
|
@ -35,14 +36,6 @@ class TextCache;
|
||||||
#define FONT_PATH_REGULAR ":/fonts/Akrobat-SemiBold.ttf"
|
#define FONT_PATH_REGULAR ":/fonts/Akrobat-SemiBold.ttf"
|
||||||
#define FONT_PATH_BOLD ":/fonts/Akrobat-Bold.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.
|
// A TrueType Font renderer that uses FreeType and OpenGL.
|
||||||
// The library is automatically initialized when it's needed.
|
// The library is automatically initialized when it's needed.
|
||||||
class Font : public IReloadable
|
class Font : public IReloadable
|
||||||
|
|
Loading…
Reference in a new issue