swift
Public Types | Public Member Functions | List of all members
swift::core::CActionBind Class Reference

CActionBind binds a member function to an action. More...

Inheritance diagram for swift::core::CActionBind:
[legend]

Public Types

template<typename U >
using MembFunc = void(U::*)(bool)
 Signature of receiving member function.
 

Public Member Functions

template<typename Receiver >
 CActionBind (const QString &action, swift::misc::CIcons::IconIndex icon, Receiver *receiver, MembFunc< Receiver > slot=nullptr, const std::function< void()> &deleteCallback={}, QObject *parent=nullptr)
 Constructor.
 
 CActionBind (const QString &action, swift::misc::CIcons::IconIndex icon, QObject *parent=nullptr)
 Signature just to set an icon for an action.
 
 ~CActionBind ()
 Destructor.
 
void unbind ()
 Unbind from swift::core::CInputManager.
 
bool isBound () const
 Bound with swift::core::CInputManager.
 
int getIndex () const
 Index.
 
 CActionBind (const CActionBind &)=delete
 Not copyable.
 
CActionBindoperator= (const CActionBind &)=delete
 Not copyable.
 

Detailed Description

CActionBind binds a member function to an action.

Definition at line 17 of file actionbind.h.


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