MCPcopy Create free account
hub / github.com/davisking/dlib / set_click_handler

Method set_click_handler

dlib/gui_widgets/widgets.h:242–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 typename T
241 >
242 void set_click_handler (
243 T& object,
244 void (T::*event_handler_)()
245 )
246 {
247 auto_mutex M(m);
248 event_handler = make_mfp(object,event_handler_);
249 event_handler_self.clear();
250 }
251
252 void set_click_handler (
253 const any_function<void()>& event_handler_

Callers

nothing calls this directly

Calls 2

make_mfpFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected