27 lines
566 B
C++
27 lines
566 B
C++
#ifndef GUIToolStrip_h__
|
|||
|
|
#define GUIToolStrip_h__
|
||
|
|
|
||
|
|
#include "GUIButton.h"
|
||
|
|
#include "GUIToolStripItem.h"
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace LifeGUI
|
||
|
|
{
|
||
|
|
class GUIToolStrip : public GUIPlane
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
GUIToolStrip();
|
||
|
|
~GUIToolStrip();
|
||
|
|
void AddItem(GUIToolStripItem* itm);
|
||
|
|
void SetIsVertical(bool state);
|
||
|
|
private:
|
||
|
|
void UpdateLayout(GUIWindow* wnd);
|
||
|
|
protected:
|
||
|
|
typedef std::vector<GUIToolStripItem*> ItemCollection;
|
||
|
|
typedef std::vector<GUIToolStripItem*>::iterator ItemCollectionIter;
|
||
|
|
ItemCollection Items;
|
||
|
|
bool isVertical;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // GUIToolStrip_h__
|