Activating the callback unit test
This commit is contained in:
parent
6d72168ca4
commit
6fef7a43a5
|
@ -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
|
handler explicitly provided by Widget, in the form of a callback function
|
||||||
or a callback method, can react to such a signal.
|
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
|
```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:
|
The structure of a callback method is the same:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
void classname::cb_methode (FWidget* w, FDataPtr data)
|
void classname::cb_methode (FWidget* w, int* i, double* d, ...)
|
||||||
{...}
|
{...}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ fpoint_test_SOURCES = fpoint-test.cpp
|
||||||
frect_test_SOURCES = frect-test.cpp
|
frect_test_SOURCES = frect-test.cpp
|
||||||
|
|
||||||
TESTS = fobject_test \
|
TESTS = fobject_test \
|
||||||
|
fcallback_test \
|
||||||
fmouse_test \
|
fmouse_test \
|
||||||
fkeyboard_test \
|
fkeyboard_test \
|
||||||
ftermdata_test \
|
ftermdata_test \
|
||||||
|
|
Loading…
Reference in New Issue