mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-07-02 18:05:26 +03:00
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.
28 lines
370 B
C++
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
|