1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 
3 /* fm-icon-container.h - the container widget for file manager icons
4 
5    Copyright (C) 2002 Sun Microsystems, Inc.
6 
7    The Mate Library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Library General Public License as
9    published by the Free Software Foundation; either version 2 of the
10    License, or (at your option) any later version.
11 
12    The Mate Library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Library General Public License for more details.
16 
17    You should have received a copy of the GNU Library General Public
18    License along with the Mate Library; see the file COPYING.LIB.  If not,
19    write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20    Boston, MA 02110-1301, USA.
21 
22    Author: Michael Meeks <michael@ximian.com>
23 */
24 
25 #ifndef FM_ICON_CONTAINER_H
26 #define FM_ICON_CONTAINER_H
27 
28 #include <libcaja-private/caja-icon-container.h>
29 
30 #include "fm-icon-view.h"
31 
32 typedef struct FMIconContainer FMIconContainer;
33 typedef struct FMIconContainerClass FMIconContainerClass;
34 
35 #define FM_TYPE_ICON_CONTAINER fm_icon_container_get_type()
36 #define FM_ICON_CONTAINER(obj) \
37   (G_TYPE_CHECK_INSTANCE_CAST ((obj), FM_TYPE_ICON_CONTAINER, FMIconContainer))
38 #define FM_ICON_CONTAINER_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_CAST ((klass), FM_TYPE_ICON_CONTAINER, FMIconContainerClass))
40 #define FM_IS_ICON_CONTAINER(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FM_TYPE_ICON_CONTAINER))
42 #define FM_IS_ICON_CONTAINER_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_TYPE ((klass), FM_TYPE_ICON_CONTAINER))
44 #define FM_ICON_CONTAINER_GET_CLASS(obj) \
45   (G_TYPE_INSTANCE_GET_CLASS ((obj), FM_TYPE_ICON_CONTAINER, FMIconContainerClass))
46 
47 typedef struct FMIconContainerDetails FMIconContainerDetails;
48 
49 struct FMIconContainer
50 {
51     CajaIconContainer parent;
52 
53     FMIconView *view;
54     gboolean    sort_for_desktop;
55 };
56 
57 struct FMIconContainerClass
58 {
59     CajaIconContainerClass parent_class;
60 };
61 
62 GType                  fm_icon_container_get_type         (void);
63 CajaIconContainer *fm_icon_container_construct        (FMIconContainer *icon_container,
64         FMIconView      *view);
65 CajaIconContainer *fm_icon_container_new              (FMIconView      *view);
66 void                   fm_icon_container_set_sort_desktop (FMIconContainer *container,
67         gboolean         desktop);
68 
69 #endif /* FM_ICON_CONTAINER_H */
70