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

IconButton: removed unused functionality.

Labels were always right-aligned: this was the default and no other alignment
was ever selected.
Also removed unused getter and setter methods.
This commit is contained in:
Maarten ter Huurne
2011-10-23 12:30:20 +02:00
parent abe9130de9
commit 62facf4dc7
2 changed files with 16 additions and 93 deletions

View File

@@ -15,9 +15,6 @@ class IconButton : public Button {
protected:
GMenu2X *gmenu2x;
string icon, label;
int labelPosition, labelMargin;
ASFont::HAlign labelHAlign;
ASFont::VAlign labelVAlign;
void recalcSize();
SDL_Rect iconRect, labelRect;
@@ -26,11 +23,6 @@ protected:
void updateSurfaces();
public:
static const int DISP_RIGHT = 0;
static const int DISP_LEFT = 1;
static const int DISP_TOP = 2;
static const int DISP_BOTTOM = 3;
IconButton(GMenu2X *gmenu2x, const string &icon, const string &label="");
virtual ~IconButton() {};
@@ -39,13 +31,6 @@ public:
virtual void setPosition(int x, int y);
const string &getLabel();
void setLabel(const string &label);
void setLabelPosition(int pos, int margin);
const string &getIcon();
void setIcon(const string &icon);
void setAction(ButtonAction action);
};