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

Internal state of the switch changes. More...

#include <signal_component.hpp>

Public Member Functions

template<typename Function_t , typename Data_t >
void connect_signal_switched (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_switched (Function_t f)
 connect handler, will be invoked when signal is emitted
 
void set_signal_switched_blocked (bool b)
 
bool get_signal_switched_blocked () const
 
void emit_signal_switched (UnusedArgument_t _)
 invoke signal handler manually
 
void disconnect_signal_switched ()
 

Static Public Attributes

static const char * signal_id = "notify::active"
 glib ID
 

Protected Member Functions

 has_signal_switched (T *instance)
 

Detailed Description

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

Internal state of the switch changes.

Template Parameters
Tinstance type

Member Function Documentation

◆ connect_signal_switched() [1/2]

template<typename T >
template<typename Function_t >
void mousetrap::has_signal_switched< T >::connect_signal_switched ( Function_t  f)
inline

connect handler, will be invoked when signal is emitted

Parameters
ffunction with signature (T&, UnusedArgument_t) -> void

◆ connect_signal_switched() [2/2]

template<typename T >
template<typename Function_t , typename Data_t >
void mousetrap::has_signal_switched< T >::connect_signal_switched ( 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&, UnusedArgument_t, Data_t) -> void
dataarbitrary data

◆ emit_signal_switched()

template<typename T >
void mousetrap::has_signal_switched< T >::emit_signal_switched ( UnusedArgument_t  _)
inline

invoke signal handler manually

Parameters
_unused parameter, should be ignored

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