source: network-game/client/Client/GuiComponent.h@ cbc595d

Last change on this file since cbc595d was 87b3ee2, checked in by dportnoy <dmp1488@…>, 12 years ago

Created a simple gui for the client

  • Property mode set to 100644
File size: 487 bytes
Line 
1#ifndef _GUICOMPONENT_H
2#define _GUICOMPONENT_H
3
4#include <allegro5/allegro.h>
5#include <allegro5/allegro_primitives.h>
6#include <allegro5/allegro_font.h>
7
8class GuiComponent
9{
10protected:
11 int x, y, width, height;
12 ALLEGRO_BITMAP *bitmap;
13 ALLEGRO_FONT *font;
14
15public:
16 GuiComponent(int x, int y, int width, int height, ALLEGRO_FONT *font);
17 virtual ~GuiComponent(void);
18
19 virtual void draw(ALLEGRO_DISPLAY *display);
20 virtual bool handleEvent(ALLEGRO_EVENT& e);
21};
22
23#endif
Note: See TracBrowser for help on using the repository browser.