Activating the callback unit test

This commit is contained in:
Markus Gans 2020-08-11 23:38:56 +02:00
parent 6d72168ca4
commit 6fef7a43a5
2 changed files with 4 additions and 3 deletions

View File

@ -510,17 +510,17 @@ clicked by a keyboard or mouse, it sends the string "clicked". A signal
handler explicitly provided by Widget, in the form of a callback function
or a callback method, can react to such a signal.
A callback function is always structured as follows:
A callback function has no return value can have various arguments:
```cpp
void cb_function (FWidget* w, FDataPtr data)
void cb_function (FWidget* w, int* i, double* d, ...)
{...}
```
The structure of a callback method is the same:
```cpp
void classname::cb_methode (FWidget* w, FDataPtr data)
void classname::cb_methode (FWidget* w, int* i, double* d, ...)
{...}
```

View File

@ -50,6 +50,7 @@ fpoint_test_SOURCES = fpoint-test.cpp
frect_test_SOURCES = frect-test.cpp
TESTS = fobject_test \
fcallback_test \
fmouse_test \
fkeyboard_test \
ftermdata_test \