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

Last change on this file since 6319311 was 6319311, checked in by Dmitry Portnoy <dportnoy@…>, 11 years ago

Some redfinition issues related to winsock2 are fixed and a few allegro rendering functions are now in GameRender

  • 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.