Last change
on this file since c51da03 was 87b3ee2, checked in by dportnoy <dmp1488@…>, 12 years ago |
Created a simple gui for the client
|
-
Property mode
set to
100644
|
File size:
471 bytes
|
Line | |
---|
1 | #include "GuiComponent.h"
|
---|
2 |
|
---|
3 | GuiComponent::GuiComponent(int x, int y, int width, int height, ALLEGRO_FONT *font)
|
---|
4 | {
|
---|
5 | this->x = x;
|
---|
6 | this->y = y;
|
---|
7 | this->width = width;
|
---|
8 | this->height = height;
|
---|
9 | this->font = font;
|
---|
10 | this->bitmap = al_create_bitmap(width, height);
|
---|
11 | }
|
---|
12 |
|
---|
13 | GuiComponent::~GuiComponent(void)
|
---|
14 | {
|
---|
15 | al_destroy_bitmap(this->bitmap);
|
---|
16 | }
|
---|
17 |
|
---|
18 | void GuiComponent::draw(ALLEGRO_DISPLAY *display)
|
---|
19 | {
|
---|
20 | }
|
---|
21 |
|
---|
22 | bool GuiComponent::handleEvent(ALLEGRO_EVENT& e)
|
---|
23 | {
|
---|
24 | return false;
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.