Merging NList MCC 0.119 into the main branch.
[AROS.git] / workbench / classes / zune / nlist / nlisttree_mcp / private.h
blob21c06ce2b87ad80c4b019f6db21a9354bfae887c
1 #ifndef MUI_NLISTTREE_priv_MCP_H
2 #define MUI_NLISTTREE_priv_MCP_H
4 /***************************************************************************
6 NListtree.mcc - New Listtree MUI Custom Class
7 Copyright (C) 1999-2001 by Carsten Scholling
8 Copyright (C) 2001-2014 NList Open Source Team
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 NList classes Support Site: http://www.sf.net/projects/nlist-classes
22 $Id$
24 ***************************************************************************/
26 #include "amiga-align.h"
27 #include "../nlisttree_mcc/private.h"
28 #include "default-align.h"
30 #include "Debug.h"
32 #include <mcc_common.h>
34 #define MCPMAXRAWBUF 64
36 struct NListtreeP_Data
38 Object *NLT_Sample;
39 Object *BT_Sample_Expand;
40 Object *BT_Sample_Collapse;
41 Object *GR_Prefs;
42 Object *PI_ImageClosed;
43 Object *PI_ImageOpen;
44 Object *PI_ImageFolder;
45 Object *PP_LinePen;
46 Object *PP_ShadowPen;
47 Object *PP_GlowPen;
48 Object *CY_LineType;
49 Object *SL_IndentWidth;
50 Object *CH_RememberStatus;
51 Object *CH_OpenAutoScroll;
52 Object *CH_UseFolderImage;
55 /// xget()
56 // Gets an attribute value from a MUI object
57 IPTR xget(Object *obj, const IPTR attr);
58 #if defined(__GNUC__)
59 // please note that we do not evaluate the return value of GetAttr()
60 // as some attributes (e.g. MUIA_Selected) always return FALSE, even
61 // when they are supported by the object. But setting b=0 right before
62 // the GetAttr() should catch the case when attr doesn't exist at all
63 #define xget(OBJ, ATTR) ({IPTR b=0; GetAttr(ATTR, OBJ, &b); b;})
64 #endif
65 ///
67 #endif /* MUI_NLISTTREE_priv_MCP_H */