mousetrap v0.2.0
Loading...
Searching...
No Matches
mousetrap::has_signal_unrealize< T > Class Template Reference

Widget is unmapped and will no longer be drawn. More...

#include <signal_component.hpp>

Public Member Functions

template<typename Function_t , typename Data_t >
void connect_signal_unrealize (Function_t f, Data_t data)
 connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function
 
template<typename Function_t >
void connect_signal_unrealize (Function_t f)
 connect handler, will be invoked when signal is emitted
 
void set_signal_unrealize_blocked (bool b)
 Set whether signal emission should trigger the signal handler.
 
bool get_signal_unrealize_blocked () const
 get whether signal emission should trigger the signal handler
 
void emit_signal_unrealize ()
 invoke signal handler manually
 
void disconnect_signal_unrealize ()
 disconnect the signal handler
 

Static Public Attributes

static const char * signal_id = "unrealize"
 

Protected Member Functions

 has_signal_unrealize (T *instance)
 ctor protected
 

Detailed Description

template<typename T>
class mousetrap::has_signal_unrealize< T >

Widget is unmapped and will no longer be drawn.

Template Parameters
Tinstance type

Member Function Documentation

◆ connect_signal_unrealize() [1/2]

template<typename T >
template<typename Function_t >
void mousetrap::has_signal_unrealize< T >::connect_signal_unrealize ( Function_t  f)
inline

connect handler, will be invoked when signal is emitted

Parameters
ffunction with signature (T&) -> void

◆ connect_signal_unrealize() [2/2]

template<typename T >
template<typename Function_t , typename Data_t >
void mousetrap::has_signal_unrealize< T >::connect_signal_unrealize ( Function_t  f,
Data_t  data 
)
inline

connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function

Parameters
ffunction with signature (T&, Data_t) -> void
dataarbitrary data

◆ disconnect_signal_unrealize()

template<typename T >
void mousetrap::has_signal_unrealize< T >::disconnect_signal_unrealize ( )
inline

disconnect the signal handler

◆ emit_signal_unrealize()

template<typename T >
void mousetrap::has_signal_unrealize< T >::emit_signal_unrealize ( )
inline

invoke signal handler manually

◆ get_signal_unrealize_blocked()

template<typename T >
bool mousetrap::has_signal_unrealize< T >::get_signal_unrealize_blocked ( ) const
inline

get whether signal emission should trigger the signal handler

Returns
true if handle is blocked, false otherwise

◆ set_signal_unrealize_blocked()

template<typename T >
void mousetrap::has_signal_unrealize< T >::set_signal_unrealize_blocked ( bool  b)
inline

Set whether signal emission should trigger the signal handler.

Parameters
btrue if handler should be blocked, false otherwise

The documentation for this class was generated from the following file: