Pioneer
src
gui
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 */
GuiImage.h
GuiRadioButton.h
Gui::ImageRadioButton
Definition:
GuiImageRadioButton.h:14
Gui::ImageRadioButton::Draw
virtual void Draw()
Definition:
GuiImageRadioButton.cpp:31
Gui::ImageRadioButton::GetSizeRequested
virtual void GetSizeRequested(float size[2])
Definition:
GuiImageRadioButton.cpp:26
Gui::ImageRadioButton::~ImageRadioButton
virtual ~ImageRadioButton()
Definition:
GuiImageRadioButton.cpp:20
Gui::ImageRadioButton::ImageRadioButton
ImageRadioButton(RadioGroup *, const char *img_normal, const char *img_pressed)
Definition:
GuiImageRadioButton.cpp:10
Gui::ImageRadioButton::SetRenderDimensions
void SetRenderDimensions(const float wide, const float high)
Definition:
GuiImageRadioButton.cpp:45
Gui::Image
Definition:
GuiImage.h:12
Gui::RadioButton
Definition:
GuiRadioButton.h:15
Gui::RadioGroup
Definition:
GuiRadioGroup.h:11
Gui
Definition:
Gui.cpp:10
Generated by
1.9.1