From 6fef7a43a51fc5fea4d3e2a2d5510dc7d1577c01 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Tue, 11 Aug 2020 23:38:56 +0200 Subject: [PATCH] Activating the callback unit test --- doc/first-steps.md | 6 +++--- test/Makefile.am | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/first-steps.md b/doc/first-steps.md index a52e48a0..dcb0623f 100644 --- a/doc/first-steps.md +++ b/doc/first-steps.md @@ -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, ...) {...} ``` diff --git a/test/Makefile.am b/test/Makefile.am index f375ea75..27420c4d 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 \