libsegl/glgui/window.h

36 lines
663 B
C
Raw Normal View History

2008-02-09 13:43:23 +01:00
#ifndef __GLGUIWINDOW_H
#define __GLGUIWINDOW_H
#include <iostream>
#include <string>
#include <vector>
#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>
#include "../glcolor.h"
#include "../gldrawhelper.h"
#include "object.h"
class GLGuiWindow : public GLGuiObject {
private:
bool renderbackground;
SDL_Rect pos;
GLColor bgcolor;
std::vector<GLGuiObject*> items;
std::vector<GLGuiObject*> highlightable;
std::vector<GLGuiObject*> clickable;
std::vector<GLGuiObject*> keyboardable;
public:
GLGuiWindow(SDL_Rect _pos, GLColor _bgcolor);
~GLGuiWindow();
void addItem(GLGuiObject*);
SDL_Rect getPos();
void render();
};
#endif