2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <graphics/clip.h>
10 #include <graphics/layers.h>
11 #include <utility/tagitem.h>
12 #include "basicfuncs.h"
14 /*****************************************************************************
17 #include <proto/layers.h>
18 AROS_LH1(struct Layer
*, GetFirstFamilyMember
,
21 AROS_LHA(struct Layer
*, l
, A0
),
24 struct LayersBase
*, LayersBase
, 38, Layers
)
27 Gets the first member of a layer family. If the layer
28 has no children at all this function returns the
29 pointer to the same layer as given.
30 If the layer has children which again have children etc.
31 this function returns the frontmost child.
34 l - pointer to a layer structure.
37 Pointer to a layer structure that represents the front
38 most child of the given layer or the layer itself if it
52 27-11-96 digulla automatically created from
53 layers_lib.fd and clib/layers_protos.h
55 *****************************************************************************/
58 AROS_LIBBASE_EXT_DECL(struct LayersBase
*,LayersBase
)
60 struct Layer
* lastgood
= l
, *_l
= l
->front
;
62 while ((NULL
!= _l
) && (_l
->nesting
> l
->nesting
))
70 } /* GetFirstFamilyMember */