2009-09-27 20:19:53 +02:00
|
|
|
#include "gui.h"
|
|
|
|
|
|
|
|
class cSearchButton;
|
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
class GuiSearchBar: public GuiWindow
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
2010-09-24 02:48:03 +02:00
|
|
|
GuiSearchBar(const wchar_t *SearchChars);
|
2010-09-19 01:16:05 +02:00
|
|
|
~GuiSearchBar();
|
|
|
|
void Draw();
|
2010-09-24 02:48:03 +02:00
|
|
|
void Update(GuiTrigger * t);
|
2010-09-19 01:16:05 +02:00
|
|
|
wchar_t GetClicked();
|
|
|
|
private:
|
2010-09-24 02:48:03 +02:00
|
|
|
u16 inSide;
|
|
|
|
|
|
|
|
GuiText text;
|
|
|
|
|
|
|
|
GuiImageData* imgBacspaceBtn;
|
|
|
|
GuiImage* BacspaceBtnImg;
|
|
|
|
GuiImage* BacspaceBtnImg_Over;
|
|
|
|
GuiButton* BacspaceBtn;
|
|
|
|
|
|
|
|
GuiImageData* imgClearBtn;
|
|
|
|
GuiImage* ClearBtnImg;
|
|
|
|
GuiImage* ClearBtnImg_Over;
|
|
|
|
GuiButton* ClearBtn;
|
|
|
|
|
|
|
|
cSearchButton **buttons;
|
|
|
|
int cnt;
|
|
|
|
GuiImageData keyImageData;
|
|
|
|
GuiImageData keyOverImageData;
|
|
|
|
GuiTrigger trig;
|
|
|
|
GuiSound sndOver;
|
|
|
|
GuiSound sndClick;
|
2009-09-27 20:19:53 +02:00
|
|
|
|
|
|
|
};
|