1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00
gmenu2x/src/buttonbox.h
Maarten ter Huurne 8e885bc2c1 Removed GMenu2X::drawButton variant
This was only called form ButtonBox, so I moved the code there.

I still think a paint method shouldn't be repositioning widgets, but
that's something for a later cleanup.
2014-08-15 17:27:09 +02:00

28 lines
370 B
C++

#ifndef __BUTTONBOX_H__
#define __BUTTONBOX_H__
#include <vector>
class GMenu2X;
class IconButton;
class Surface;
class ButtonBox
{
public:
ButtonBox(GMenu2X *gmenu2x);
~ButtonBox();
void add(IconButton *button);
void clear();
void paint(Surface& s, unsigned int x);
void handleTS();
private:
std::vector<IconButton*> buttons;
GMenu2X *gmenu2x;
};
#endif