psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::SlotBase Class Referenceabstract

#include <Slot.hpp>

Inheritance diagram for psychic_ui::SlotBase:
psychic_ui::Slot< T >

Public Member Functions

 SlotBase (const SlotBase &)=delete
SlotBase & operator= (const SlotBase &)=delete
 SlotBase (SlotBase &&)=delete
SlotBase & operator= (SlotBase &&)=delete
virtual void disconnect ()=0
virtual bool connected () const =0

Detailed Description

Type-erased slot, so that a ScopedSlot can hold a slot of any signal.

Member Function Documentation

◆ connected()

virtual bool psychic_ui::SlotBase::connected ( ) const
nodiscardpure virtual

Whether the callback will still be called when the signal is emitted

Implemented in psychic_ui::Slot< T >.

◆ disconnect()

virtual void psychic_ui::SlotBase::disconnect ( )
pure virtual

Disconnects this slot from its signal. Safe to call more than once, from inside the callback, and after the signal was destroyed.

Implemented in psychic_ui::Slot< T >.


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