ES-DE/src/components/GuiImage.h
Aloshi 4f99dec7c2 Font size is now dependent on resolution width.
Scrolling will now occur if the input is held (not just keyboards anymore!).
Initial XML gamelist support. If a file named gamelist.xml is present in the directory ES is run from, it will be parsed and the detailed GuiGameList will be used. Games are matched by absolute path, and a name, description, and image path can be read.
PugiXML is used for parsing XML files - its license can be found in src/pugiXML/pugiXML_license.txt.
SDL_image is used for loading screenshots with the detailed GuiGameList.
Almost all invalid bash characters should be escaped in ROM paths now - including !$^&*()[]<>?;'"\.
2012-08-01 20:43:55 -05:00

23 lines
356 B
C++

#ifndef _GUIIMAGE_H_
#define _GUIIMAGE_H_
#include "../GuiComponent.h"
#include <SDL/SDL.h>
#include <string>
class GuiImage : public GuiComponent
{
public:
GuiImage(int offsetX = 0, int offsetY = 0, std::string path = "");
~GuiImage();
void setImage(std::string path);
void onRender();
private:
SDL_Surface* mSurface;
SDL_Rect mRect;
};
#endif