|
| SignalPanelListBoxItem (String &&name) |
| Constructor.
|
|
template<typename Func , typename... BoundArgs> |
unsigned int | operator() (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &...)> >::value > * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., int)> >::value > * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., const std::shared_ptr< Panel > &)> >::value , * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., const String &)> >::value > * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., int, const std::shared_ptr< Panel > &)> >::value , * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., const std::shared_ptr< Panel > &, const String &)> >::value , * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., int, const std::shared_ptr< Panel > &, const String &)> >::value , * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
bool | emit (const Widget *widget, int index, const std::shared_ptr< Panel > &panel, const String &id) |
| Call all connected signal handlers.
|
|
virtual | ~Signal ()=default |
| Default destructor.
|
|
| Signal (String &&name, std::size_t extraParameters=0) |
| Constructor.
|
|
| 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.
|
|
template<typename Func , typename... BoundArgs> |
unsigned int | operator() (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, typename std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &...)> >::value > * = nullptr> |
unsigned int | connect (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
template<typename Func , typename... BoundArgs, typename std::enable_if_t< std::is_convertible< Func, std::function< void(const BoundArgs &..., const std::shared_ptr< Widget > &, const String &)> >::value , * = nullptr> |
unsigned int | connectEx (const Func &func, const BoundArgs &... args) |
| Connects a signal handler that will be called when this signal is emitted.
|
|
bool | disconnect (unsigned int id) |
| Disconnect a signal handler from this signal.
|
|
void | disconnectAll () |
| Disconnect all signal handler from this signal.
|
|
bool | emit (const Widget *widget) |
| Call all connected signal handlers.
|
|
TGUI_NODISCARD String | getName () const |
| Returns the name given to the signal.
|
|
void | setEnabled (bool enabled) |
| Changes whether this signal calls the connected functions when triggered.
|
|
TGUI_NODISCARD bool | isEnabled () const |
| Returns whether this signal calls the connected functions when triggered.
|
|
Signal to which the user can subscribe to get callbacks from.
Optional unbound parameters:
- int (item index)
- std::shared_ptr<Panel> (item ptr)
- String (item id)
- int, std::shared_ptr<Panel> (item index and item ptr)
- std::shared_ptr<Panel>, String (item ptr and item id)
- int, std::shared_ptr<Panel>, String (item index, item ptr and item id)