From c175d1276df0c3c96799e57ed20535e547416757 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 9 Dec 2021 21:06:04 +0100 Subject: STR 3210: fixing indentation of Fl_Menu_Item cnd Widget allbacks. also added and fixed a few comments STR 3210: fixed indenting of widget callbacks. Also fixed what is considered a 'name' (could still be improved). Also better formatting inlined functions in the header. --- fluid/documentation/src/code.dox | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'fluid/documentation/src') diff --git a/fluid/documentation/src/code.dox b/fluid/documentation/src/code.dox index d07420dce..cff61ea97 100644 --- a/fluid/documentation/src/code.dox +++ b/fluid/documentation/src/code.dox @@ -2,9 +2,9 @@ /** - \page code Code Nodes +\page codeNodes Code Nodes - Overview of code nodes. +Overview of code nodes. \section function Functions and Methods @@ -153,9 +153,24 @@ is no text after the keyword. ### Further Options ### +Users can define a comment text in the *comment* field. The first line of the +comment will be shown in the widget browser. The comment text will be generated +in the source file ahead of thefunction. +``` +// .cxx +/* + My multilen comment + will be here + */ +Fl_Window* make_window() { +``` + Fluid recognizes default values in the argument list and geneartes them in the declaration, but omits them in the implementation. +A short function body can be appended in the *Name* field. With no child, this +creates an inlined function in the header file. + \section code C Source Code -- cgit v1.2.3