source: network-game/client/Client/RadioButtonList.h@ ea17281

Last change on this file since ea17281 was 1e250bf, checked in by Dmitry Portnoy <dmp1488@…>, 11 years ago

Client makefile is up-to-date and includes -Wall

  • Property mode set to 100644
File size: 582 bytes
RevLine 
[5c95436]1#ifndef _RADIOBUTTONLIST_H
2#define _RADIOBUTTONLIST_H
3
4#include "GuiComponent.h"
5
6#include <string>
7#include <vector>
8
9using namespace std;
10
11class RadioButtonList :
12 public GuiComponent
13{
14private:
15 string strLabel;
16 vector<string> vctRadioButtons;
[1e250bf]17 unsigned int selectedButton;
[5c95436]18
19public:
20 RadioButtonList(int x, int y, string strLabel, ALLEGRO_FONT *font);
21 ~RadioButtonList(void);
22
23 void draw(ALLEGRO_DISPLAY *display);
24 bool handleEvent(ALLEGRO_EVENT& e);
25
26 void addRadioButton(string s);
27 int getSelectedButton();
[49da01a]28 void setSelectedButton(int b);
[5c95436]29};
30
31#endif
32
Note: See TracBrowser for help on using the repository browser.