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

Function Foo

examples/Signals.cpp:22–24  ·  view source on GitHub ↗

This is the first possibility you have of connecting a signal handler. You just pass it the address of a normal function: button->OnLeftClick.Connect( &Foo );

Source from the content-addressed store, hash-verified

20// You just pass it the address of a normal function:
21// button->OnLeftClick.Connect( &Foo );
22void Foo() {
23 window->SetTitle( "Foo" );
24}
25
26// This is the third possibility. You create instances of a class and
27// define their behavior on a per instance basis. Depending on the pointer

Callers

nothing calls this directly

Calls 1

SetTitleMethod · 0.80

Tested by

no test coverage detected