IndexEntry.h 630 Bytes
Newer Older
daFischer's avatar
daFischer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/* 
 * File:   IndexEntry.h
 * Author: user
 *
 * Created on July 24, 2014, 12:54 AM
 */

#ifndef INDEXENTRY_H
#define	INDEXENTRY_H

#include <stdio.h>
#include <SDL/SDL.h>
#include <fstream>

#include "SizedArray.h"

using namespace std;

class IndexEntry {
public:
    IndexEntry(char* title, int timestamp, SizedArray* searchable, SDL_Surface* image);
    virtual ~IndexEntry();
    SDL_Rect getRect(SDL_Surface* screen, int x, int y);
    void paintAt(SDL_Surface* screen, int x, int y);
    
    int timestamp;
    
private:
    char* title;
    SizedArray* searchable;
    SDL_Surface* image;
};

#endif	/* INDEXENTRY_H */