GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
Button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
BaseComponents/StandardComponents/Buttons/BaseButton.h
"
4
#include "
Interfaces/Components/IResizableComponent.h
"
5
6
namespace
gui_framework
7
{
9
class
GUI_FRAMEWORK_API
Button
:
10
public
BaseButton
,
11
public
interfaces::IResizableComponent
12
{
13
public
:
14
Button
(
const
std::wstring& buttonName,
const
std::wstring& buttonText,
const
utility::ComponentSettings
& settings,
BaseComposite
* parent,
const
std::function<
void
()>& onClick =
nullptr
);
15
16
Button
(
const
std::wstring& buttonName,
const
std::wstring& buttonText,
const
utility::ComponentSettings
& settings,
BaseComposite
* parent,
const
std::string& functionName,
const
std::string& moduleName);
17
18
size_t
getHash()
const override
;
19
20
~Button
() =
default
;
21
};
22
}
BaseButton.h
GUI_FRAMEWORK_API
#define GUI_FRAMEWORK_API
Definition
GUIFrameworkConstants.h:103
IResizableComponent.h
gui_framework::BaseButton
Base class for all buttons.
Definition
BaseButton.h:15
gui_framework::BaseComposite
Base class for all windows that has children windows.
Definition
BaseComposite.h:23
gui_framework::Button
Standard button.
Definition
Button.h:12
gui_framework::Button::Button
Button(const std::wstring &buttonName, const std::wstring &buttonText, const utility::ComponentSettings &settings, BaseComposite *parent, const std::function< void()> &onClick=nullptr)
gui_framework::Button::~Button
~Button()=default
gui_framework::Button::Button
Button(const std::wstring &buttonName, const std::wstring &buttonText, const utility::ComponentSettings &settings, BaseComposite *parent, const std::string &functionName, const std::string &moduleName)
gui_framework::interfaces::IResizableComponent
Provides resize, setBlockResize, getBlockResize methods.
Definition
IResizableComponent.h:11
gui_framework
Definition
BaseComponent.cpp:21
gui_framework::utility::ComponentSettings
All settings for windows.
Definition
ComponentSettings.h:11
GUIFramework
src
Components
Buttons
Button.h
Generated by
1.12.0