Skip to content

Commit

Permalink
Functions can only contain windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Apr 17, 2024
1 parent 8929d0b commit 42ea919
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions fluid/documentation/src/page_functional_nodes.dox
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

### Children ###

Function nodes can contain code nodes and widgets. The topmost node of a
widget tree must be a window or a group or a widget derived from those
types.
Function nodes can contain code nodes and windows that in turn contain widgets.
If the function node has no children, only a forward declaration will be
created in the header, but no source code will be generated.

Expand Down Expand Up @@ -65,9 +63,8 @@
}
```

If the function contains widgets, a pointer to the first widget
will be return. The default return type will match the type of the
first widget.
If the function contains one or more windows, a pointer to the first window
will be returned. The default return type will match the window class.
```
// .h
Fl_Window* make_window();
Expand Down

0 comments on commit 42ea919

Please sign in to comment.