1 /*
2    NSBrowserCell.h
3 
4    Cell class for the NSBrowser
5 
6    Copyright (C) 1996 Free Software Foundation, Inc.
7 
8    Author:  Scott Christley <scottc@net-community.com>
9    Date: 1996
10 
11    This file is part of the GNUstep GUI Library.
12 
13    This library is free software; you can redistribute it and/or
14    modify it under the terms of the GNU Lesser General Public
15    License as published by the Free Software Foundation; either
16    version 2 of the License, or (at your option) any later version.
17 
18    This library is distributed in the hope that it will be useful,
19    but WITHOUT ANY WARRANTY; without even the implied warranty of
20    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
21    Lesser General Public License for more details.
22 
23    You should have received a copy of the GNU Lesser General Public
24    License along with this library; see the file COPYING.LIB.
25    If not, see <http://www.gnu.org/licenses/> or write to the
26    Free Software Foundation, 51 Franklin Street, Fifth Floor,
27    Boston, MA 02110-1301, USA.
28 */
29 
30 #ifndef _GNUstep_H_NSBrowserCell
31 #define _GNUstep_H_NSBrowserCell
32 #import <GNUstepBase/GSVersionMacros.h>
33 
34 #import <AppKit/NSCell.h>
35 
36 @class NSImage;
37 
38 @interface NSBrowserCell : NSCell
39 {
40   // Attributes
41   NSImage *_alternateImage;
42   // Think of the following ones as of two BOOL ivars
43 #define _browsercell_is_leaf    _cell.subclass_bool_one
44 #define _browsercell_is_loaded  _cell.subclass_bool_two
45 }
46 
47 //
48 // Accessing Graphic Attributes
49 //
50 + (NSImage *)branchImage;
51 + (NSImage *)highlightedBranchImage;
52 - (NSImage *)alternateImage;
53 - (void)setAlternateImage:(NSImage *)anImage;
54 - (NSColor *)highlightColorInView: (NSView *)controlView;
55 
56 //
57 // Placing in the Browser Hierarchy
58 //
59 - (BOOL)isLeaf;
60 - (void)setLeaf:(BOOL)flag;
61 
62 //
63 // Determining Loaded Status
64 //
65 - (BOOL)isLoaded;
66 - (void)setLoaded:(BOOL)flag;
67 
68 //
69 // Setting State
70 //
71 - (void)reset;
72 - (void)set;
73 
74 @end
75 
76 #endif // _GNUstep_H_NSBrowserCell
77