32 #include "../api_core.h"
33 #include "signals_impl.h"
50 Slot(
const std::shared_ptr<SlotCallback> &callback)
51 : impl(new
Slot_Impl) { impl->callback = callback; }
61 if (impl && impl->callback)
62 impl->callback->valid =
false;
67 if (impl && impl->callback)
68 impl->callback->enabled =
true;
73 if (impl && impl->callback)
74 impl->callback->enabled =
false;
83 std::shared_ptr<Slot_Impl>
impl;
void enable()
Definition: slot.h:65
(Internal ClanLib Class)
Definition: signals_impl.h:53
Slot()
Definition: slot.h:47
Slot(const std::shared_ptr< SlotCallback > &callback)
Definition: slot.h:50
std::shared_ptr< Slot_Impl > impl
Definition: slot.h:83
void destroy()
Definition: slot.h:59
void disable()
Definition: slot.h:71
Slot.
Definition: slot.h:41