ShishGL
1.0
A simple modular cross-platform graphics library
UIButton.hpp
Go to the documentation of this file.
1
/*============================================================================*/
2
#ifndef SHISHGL_UIBUTTON_HPP
3
#define SHISHGL_UIBUTTON_HPP
4
/*============================================================================*/
5
#include "
UIWindow.hpp
"
6
#include "
Clickable.hpp
"
7
#include "
UILabel.hpp
"
8
9
#include <string_view>
10
/*============================================================================*/
11
namespace
Sh
{
12
13
template
<
typename
Behavior>
14
class
UIButton
:
public
UIWindow
{
15
public
:
16
17
template
<
typename
... Args>
18
explicit
UIButton
(
const
Frame
& frame,
19
Args&&... args)
20
:
UIWindow
(frame) {
21
setBehavior<Behavior>(std::forward<Args>(args)...);
22
}
23
24
};
25
26
}
27
/*============================================================================*/
28
#endif //SHISHGL_UIBUTTON_HPP
29
/*============================================================================*/
Sh::Frame
Definition:
Frame.hpp:9
Sh::UIButton::UIButton
UIButton(const Frame &frame, Args &&... args)
Definition:
UIButton.hpp:18
UILabel.hpp
Sh::UIWindow
Definition:
UIWindow.hpp:16
Clickable.hpp
Sh
Definition:
CoreApplication.hpp:10
UIWindow.hpp
Sh::UIButton
Definition:
UIButton.hpp:14
include
ShishGL
GUI
UIButton.hpp
Generated by
1.8.20