1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Introduced enums for text alignment in the ASFont class.

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

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;