From 92206f2d18257feb4e95ecce2e48f447bd240201 Mon Sep 17 00:00:00 2001 From: alberth Date: Wed, 15 Jul 2009 22:17:08 +0000 Subject: (svn r16837) -Codechange: Collect largest used index while constructing nested widget tree. --- src/widget_type.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/widget_type.h') diff --git a/src/widget_type.h b/src/widget_type.h index 3106dc8ae..6f2f6ba3d 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -561,8 +561,12 @@ struct NWidgetPartPIP { uint8 pre, inter, post; ///< Amount of space before/between/after child widgets. }; -/** Pointer to function returning a nested widget. */ -typedef NWidgetBase *NWidgetFunctionType(); +/** Pointer to function returning a nested widget. + * @param biggest_index Pointer to storage for collecting the biggest index used in the nested widget. + * @return Nested widget (tree). + * @postcond \c *biggest_index must contain the value of the biggest index in the returned tree. + */ +typedef NWidgetBase *NWidgetFunctionType(int *biggest_index); /** Partial widget specification to allow NWidgets to be written nested. * @ingroup NestedWidgetParts */ -- cgit v1.2.3-54-g00ecf