Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
AbstractClickComponentGUI.hpp
Go to the documentation of this file.
1#ifndef LIBS_GUI_ABSTRACTCLICKCOMPONENTGUI_HPP_
2#define LIBS_GUI_ABSTRACTCLICKCOMPONENTGUI_HPP_
3
6
7#include <vector>
8
10{
11public:
14
15 void addListenerClick(IListenerClick **listener);
16 void emplaceListenerClick(std::function<void(CEventClick *evtClick)> clickFunctionCall);
17 void runListenersClick();
18
19 [[nodiscard]] bool getWithBackground() const;
20 [[nodiscard]] bool getWithShadow() const;
21
22 void setWithBackground(bool withBackground);
23 void setWithChange(bool withChange);
24 void setWithShadow(bool withShadow);
25
26 [[nodiscard]] bool isWithChange() const;
27
28private:
32
33 std::vector<IListenerClick *> _listeners;
34};
35
36#endif /* LIBS_GUI_ABSTRACTCLICKCOMPONENTGUI_HPP_ */
Definition AbstractClickComponentGUI.hpp:10
bool _withBackground
Definition AbstractClickComponentGUI.hpp:30
void emplaceListenerClick(std::function< void(CEventClick *evtClick)> clickFunctionCall)
Agrega un IListenerClick formado mediante una función lambda.
Definition AbstractClickComponentGUI.cpp:60
void setWithChange(bool withChange)
Definition AbstractClickComponentGUI.cpp:101
void setWithBackground(bool withBackground)
Definition AbstractClickComponentGUI.cpp:96
~AbstractClickComponentGUI() override
Definition AbstractClickComponentGUI.cpp:34
bool _withChange
Definition AbstractClickComponentGUI.hpp:29
bool getWithShadow() const
Definition AbstractClickComponentGUI.cpp:91
void runListenersClick()
Definition AbstractClickComponentGUI.cpp:69
AbstractClickComponentGUI()
Definition AbstractClickComponentGUI.cpp:25
std::vector< IListenerClick * > _listeners
Definition AbstractClickComponentGUI.hpp:33
bool getWithBackground() const
Definition AbstractClickComponentGUI.cpp:86
bool isWithChange() const
Definition AbstractClickComponentGUI.cpp:111
void setWithShadow(bool withShadow)
Definition AbstractClickComponentGUI.cpp:106
bool _withShadow
Definition AbstractClickComponentGUI.hpp:31
void addListenerClick(IListenerClick **listener)
Definition AbstractClickComponentGUI.cpp:45
Definition AbstractComponentGUI.hpp:30
Definition CEventClick.hpp:9
Definition IListenerClick.hpp:7