Pioneer
GuiImageRadioButton.h
Go to the documentation of this file.
1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _GUIIMAGERADIOBUTTON_H
5 #define _GUIIMAGERADIOBUTTON_H
6 
7 #include "GuiRadioButton.h"
8 #include "gui/GuiImage.h"
9 #include <string>
10 
11 class RadioGroup;
12 
13 namespace Gui {
14  class ImageRadioButton : public RadioButton {
15  public:
16  ImageRadioButton(RadioGroup *, const char *img_normal, const char *img_pressed);
17  virtual ~ImageRadioButton();
18  virtual void Draw();
19  virtual void GetSizeRequested(float size[2]);
20  void SetRenderDimensions(const float wide, const float high);
21 
22  private:
23  Image *m_imgNormal;
24  Image *m_imgPressed;
25  };
26 } // namespace Gui
27 
28 #endif /* _GUIIMAGERADIOBUTTON_H */
Definition: GuiImageRadioButton.h:14
virtual void Draw()
Definition: GuiImageRadioButton.cpp:31
virtual void GetSizeRequested(float size[2])
Definition: GuiImageRadioButton.cpp:26
virtual ~ImageRadioButton()
Definition: GuiImageRadioButton.cpp:20
ImageRadioButton(RadioGroup *, const char *img_normal, const char *img_pressed)
Definition: GuiImageRadioButton.cpp:10
void SetRenderDimensions(const float wide, const float high)
Definition: GuiImageRadioButton.cpp:45
Definition: GuiImage.h:12
Definition: GuiRadioButton.h:15
Definition: GuiRadioGroup.h:11
Definition: Gui.cpp:10