GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
Button.cpp
Go to the documentation of this file.
1#include "Button.h"
2
5
6using namespace std;
7
8namespace gui_framework
9{
10 Button::Button(const wstring& buttonName, const wstring& buttonText, const utility::ComponentSettings& settings, BaseComposite* parent, const function<void()>& onClick) :
11 BaseButton
12 (
13 buttonName,
14 buttonText,
15 settings,
16 styles::DefaultButtonStyles(),
17 parent,
18 onClick
19 ),
20 IResizableComponent
21 (
22 handle,
23 parent->getHandle()
24 )
25 {
26
27 }
28
29 Button::Button(const wstring& buttonName, const wstring& buttonText, const utility::ComponentSettings& settings, BaseComposite* parent, const string& functionName, const string& moduleName) :
30 BaseButton
31 (
32 buttonName,
33 buttonText,
34 settings,
35 styles::DefaultButtonStyles(),
36 parent,
37 functionName,
38 moduleName
39 ),
40 IResizableComponent
41 (
42 handle,
43 parent->getHandle()
44 )
45 {
46
47 }
48
49 size_t Button::getHash() const
50 {
51 return typeid(Button).hash_code();
52 }
53}
Standard button.
Definition Button.h:12
Button(const std::wstring &buttonName, const std::wstring &buttonText, const utility::ComponentSettings &settings, BaseComposite *parent, const std::function< void()> &onClick=nullptr)