Introduced enums for text alignment in the ASFont class.

This commit is contained in:
Maarten ter Huurne committed 2011-05-09 05:17:25 +02:00
1 parent c54dec90f5
commit a35a7e2c35
21 files changed
+81 -71

No files matched your search

+5 -2
View File
@@ -1,8 +1,10 @@
#ifndef ICONBUTTON_H
#define ICONBUTTON_H
#include <string>
#include "button.h"
#include "asfont.h"
#include <string>
using std::string;
@@ -14,7 +16,8 @@ protected:
GMenu2X *gmenu2x;
string icon, label;
int labelPosition, labelMargin;
unsigned short labelHAlign, labelVAlign;
ASFont::HAlign labelHAlign;
ASFont::VAlign labelVAlign;
void recalcSize();
SDL_Rect iconRect, labelRect;