A connection that automatically disconnects when going out of scope.
More...
#include <utils_signal.hpp>
A connection that automatically disconnects when going out of scope.
Definition at line 66 of file utils_signal.hpp.
◆ scoped_connection() [1/4]
lxgui::utils::scoped_connection::scoped_connection |
( |
| ) |
|
|
default |
Default constructor, no connection.
◆ scoped_connection() [2/4]
lxgui::utils::scoped_connection::scoped_connection |
( |
connection |
c | ) |
|
|
inlinenoexcept |
Conversion constructor from a raw connection.
Definition at line 72 of file utils_signal.hpp.
◆ ~scoped_connection()
lxgui::utils::scoped_connection::~scoped_connection |
( |
| ) |
|
|
inlinenoexcept |
◆ scoped_connection() [3/4]
◆ scoped_connection() [4/4]
◆ connected()
bool lxgui::utils::connection::connected |
( |
| ) |
const |
|
inlinenoexcept |
◆ disconnect()
void lxgui::utils::connection::disconnect |
( |
| ) |
|
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: