Widgets internal state is deallocated, calling Widget::~Widget() may not necessarily emit this signal.
More...
#include <signal_component.hpp>
|
static const char * | signal_id = "destroy" |
|
|
| has_signal_destroy (T *instance) |
| ctor protected
|
|
template<typename T>
class mousetrap::has_signal_destroy< T >
Widgets internal state is deallocated, calling Widget::~Widget() may not necessarily emit this signal.
- Template Parameters
-
◆ connect_signal_destroy() [1/2]
template<typename T >
template<typename Function_t >
connect handler, will be invoked when signal is emitted
- Parameters
-
f | function with signature (T&) -> void |
◆ connect_signal_destroy() [2/2]
template<typename T >
template<typename Function_t , typename Data_t >
connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function
- Parameters
-
f | function with signature (T&, Data_t) -> void |
data | arbitrary data |
◆ disconnect_signal_destroy()
disconnect the signal handler
◆ emit_signal_destroy()
invoke signal handler manually
◆ get_signal_destroy_blocked()
get whether signal emission should trigger the signal handler
- Returns
- true if handle is blocked, false otherwise
◆ set_signal_destroy_blocked()
Set whether signal emission should trigger the signal handler.
- Parameters
-
b | true if handler should be blocked, false otherwise |
The documentation for this class was generated from the following file: