usbloadergx/source/GUI/gui_gamegrid.h

63 lines
1.6 KiB
C
Raw Normal View History

#ifndef _GUIGAMEGRID_H_
#define _GUIGAMEGRID_H_
#include <vector>
#include "gui_gamebrowser.h"
#include "gui_image_async.h"
#include "usbloader/disc.h"
class GuiGameGrid : public GuiGameBrowser
{
public:
GuiGameGrid(int w, int h, const char *themePath, int selectedGame = 0);
virtual ~GuiGameGrid();
2010-09-24 02:48:03 +02:00
int FindMenuItem(int c, int d);
int GetClickedOption();
int GetSelectedOption();
void SetSelectedOption(int ind);
void setListOffset(int off) { listOffset = off; Reload(rows, listOffset); }
int getListOffset() const { return listOffset; }
void ResetState();
2010-09-24 02:48:03 +02:00
void SetFocus(int f);
void Draw();
2010-09-24 02:48:03 +02:00
void Update(GuiTrigger * t);
void Reload(int Rows, int ListOffset);
void ChangeRows(int n);
protected:
2010-09-24 02:48:03 +02:00
GuiImageData noCover;
int selectedItem;
int listOffset;
int pagesize;
int clickedItem;
int rows;
int goLeft;
int goRight;
int theme_posX;
int theme_posY;
int * gameIndex;
std::vector<GuiButton *> game;
std::vector<GuiTooltip *> titleTT;
std::vector<GuiImageAsync *> coverImg;
GuiButton * btnRight;
GuiButton * btnLeft;
GuiButton * btnRowUp;
GuiButton * btnRowDown;
GuiImage * btnLeftImg;
GuiImage * btnRightImg;
GuiImageData * imgLeft;
GuiImageData * imgRight;
GuiTrigger * trigA;
GuiTrigger * trigL;
GuiTrigger * trigR;
GuiTrigger * trigPlus;
GuiTrigger * trigMinus;
GuiTrigger * trig1;
GuiTrigger * trig2;
};
#endif