26 #ifndef TGUI_RADIO_BUTTON_HPP 27 #define TGUI_RADIO_BUTTON_HPP 30 #include <TGUI/ClickableWidget.hpp> 95 virtual bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"RadioButton");
105 const std::string& getLoadedConfigFile()
const;
121 virtual void setPosition(
float x,
float y);
132 virtual void setSize(
float width,
float height);
143 virtual sf::Vector2f getSize()
const;
154 virtual sf::Vector2f getFullSize()
const;
163 virtual void check();
170 virtual void uncheck();
179 bool isChecked()
const;
188 void setText(
const sf::String& text);
197 sf::String getText()
const;
209 void setTextFont(
const sf::Font& font);
218 const sf::Font* getTextFont()
const;
227 void setTextColor(
const sf::Color& color);
236 const sf::Color& getTextColor()
const;
246 void setTextSize(
unsigned int size);
255 unsigned int getTextSize()
const;
264 void allowTextClick(
bool acceptTextClick =
true);
277 virtual void setTransparency(
unsigned char transparency);
283 virtual bool mouseOnWidget(
float x,
float y);
288 virtual void leftMouseReleased(
float x,
float y);
293 virtual void keyPressed(
const sf::Event::KeyEvent& event);
298 virtual void widgetFocused();
306 virtual bool setProperty(std::string property,
const std::string& value);
313 virtual bool getProperty(std::string property, std::string& value)
const;
321 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
331 virtual void initialize(
Container *
const container);
338 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
349 Checked = ClickableWidgetCallbacksCount * 1,
350 Unchecked = ClickableWidgetCallbacksCount * 2,
351 SpaceKeyPressed = ClickableWidgetCallbacksCount * 8,
352 ReturnKeyPressed = ClickableWidgetCallbacksCount * 16,
353 AllRadioButtonCallbacks = ClickableWidgetCallbacksCount * 32 - 1,
354 RadioButtonCallbacksCount = ClickableWidgetCallbacksCount * 32
361 std::string m_LoadedConfigFile;
367 bool m_AllowTextClick;
373 unsigned int m_TextSize;
388 #endif // TGUI_RADIO_BUTTON_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: TextureManager.hpp:52
Parent class for widgets that store multiple widgets.
Definition: Container.hpp:43