MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Connect

Method Connect

src/SFGUI/Signal.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22unsigned int Signal::Connect( std::function<void()> delegate ) {
23 if( !m_delegates ) {
24 m_delegates.reset( new DelegateMap );
25 }
26
27 (*m_delegates)[serial] = delegate;
28 return serial++;
29}
30
31void Signal::operator()() const {
32 if( !m_delegates ) {

Callers 15

SetAdjustmentMethod · 0.80
HandleStateChangeMethod · 0.80
SetAdjustmentMethod · 0.80
CanvasMethod · 0.80
SetVerticalAdjustmentMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 3

RunMethod · 0.64
OnAddButtonHClickMethod · 0.64
OnAddButtonVClickMethod · 0.64