OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
CallbackEvent Struct Reference
module NULL
Inheritance diagram for CallbackEvent:
Collaboration diagram for CallbackEvent:

Public Member Functions

 CallbackEvent (std::function< void(void)> const &callback, boost::weak_ptr< PrinterFileSystem > owner)
 ~CallbackEvent ()

Public Attributes

std::function< void(void)> const callback
boost::weak_ptr< PrinterFileSystem > owner

Detailed Description

Constructor & Destructor Documentation

◆ CallbackEvent()

CallbackEvent::CallbackEvent ( std::function< void(void)> const & callback,
boost::weak_ptr< PrinterFileSystem > owner )
inline
1223: wxCommandEvent(EVT_FILE_CALLBACK), callback(callback), owner(owner) {}
boost::weak_ptr< PrinterFileSystem > owner
Definition PrinterFileSystem.cpp:1226
std::function< void(void)> const callback
Definition PrinterFileSystem.cpp:1225

References callback, and owner.

◆ ~CallbackEvent()

CallbackEvent::~CallbackEvent ( )
inline
1224{ if (!owner.expired()) callback(); }

References callback, and owner.

Member Data Documentation

◆ callback

std::function<void(void)> const CallbackEvent::callback

Referenced by CallbackEvent(), and ~CallbackEvent().

◆ owner

boost::weak_ptr<PrinterFileSystem> CallbackEvent::owner

Referenced by CallbackEvent(), and ~CallbackEvent().


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