usbloadergx/source/GUI/gui_searchbar.h

52 lines
941 B
C
Raw Normal View History

#ifndef GUI_SEARCHBAR_H_
#define GUI_SEARCHBAR_H_
#include <set>
#include <vector>
#include "gui.h"
#include "usbloader/disc.h"
#include "wstring.hpp"
2009-09-27 20:19:53 +02:00
class cSearchButton;
2010-09-24 02:48:03 +02:00
class GuiSearchBar: public GuiWindow
{
public:
GuiSearchBar();
virtual ~GuiSearchBar();
void Draw();
void Update(GuiTrigger * t);
wchar_t GetClicked();
static void FilterList(std::vector<struct discHdr *> &List, wString &GameFilter);
private:
static std::set<wchar_t> SearchChars;
u16 inSide;
GuiText text;
GuiImageData* imgBacspaceBtn;
GuiImage* BacspaceBtnImg;
GuiImage* BacspaceBtnImg_Over;
GuiButton* BacspaceBtn;
GuiImageData* imgClearBtn;
GuiImage* ClearBtnImg;
GuiImage* ClearBtnImg_Over;
GuiButton* ClearBtn;
GuiButton* CloseBtn;
cSearchButton *searchModeBtn;
cSearchButton **buttons;
int cnt;
GuiImageData keyImageData;
GuiImageData keyOverImageData;
GuiTrigger trig;
GuiTrigger trigB;
2009-09-27 20:19:53 +02:00
};
#endif