TGUI
0.8.9
|
Signal to which the user can subscribe to get callbacks from. More...
#include <TGUI/Signal.hpp>
Public Member Functions | |
SignalAnimation (std::string &&name) | |
Constructor. | |
Public Member Functions inherited from tgui::Signal | |
Signal (std::string &&name, std::size_t extraParameters=0) | |
Constructor. More... | |
Signal (const Signal &other) | |
Copy constructor which will not copy the signal handlers. | |
Signal (Signal &&other) noexcept=default | |
Default move constructor. | |
Signal & | operator= (const Signal &other) |
Copy assignment operator which will not copy the signal handlers. | |
Signal & | operator= (Signal &&other) noexcept=default |
Default move assignment operator. | |
unsigned int | connect (const Delegate &handler) |
Connects a signal handler that will be called when this signal is emitted. More... | |
unsigned int | connect (const DelegateEx &handler) |
Connects a signal handler that will be called when this signal is emitted. More... | |
bool | disconnect (unsigned int id) |
Disconnect a signal handler from this signal. More... | |
void | disconnectAll () |
Disconnect all signal handler from this signal. | |
bool | emit (const Widget *widget) |
Call all connected signal handlers. More... | |
std::string | getName () const |
Returns the name given to the signal. More... | |
void | setEnabled (bool enabled) |
Changes whether this signal calls the connected functions when triggered. More... | |
bool | isEnabled () const |
Returns whether this signal calls the connected functions when triggered. More... | |
Signal to which the user can subscribe to get callbacks from.
Possible optional parameters: