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

Last change on this file since 0065962 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
Line 
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;
17 unsigned int selectedButton;
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();
28 void setSelectedButton(int b);
29};
30
31#endif
32
Note: See TracBrowser for help on using the repository browser.