initial commit
This commit is contained in:
27
NewDialogs/Frame.h
Normal file
27
NewDialogs/Frame.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef FRAME
|
||||
#define FRAME
|
||||
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
class Frame : public Item {
|
||||
protected:
|
||||
vector<Item *> items;
|
||||
public:
|
||||
Frame(SDL_Rect pos);
|
||||
~Frame();
|
||||
SDL_Surface *getSurface();
|
||||
void draw();
|
||||
void addItem(Item *item);
|
||||
Item *getItem(int i);
|
||||
bool onMousePress(int x, int y);
|
||||
void onMouseRelease(int x, int y);
|
||||
void onMouseMove(int x, int y);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user