1 /*
2  *  Copyright (c) 2012-2013 Andrzej Radecki <andrzejr@xfce.org>
3  *  Copyright (c) 2017      Viktor Odintsev <ninetls@xfce.org>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Library General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef __SN_BOX_H__
21 #define __SN_BOX_H__
22 
23 #include <gtk/gtk.h>
24 
25 #include "sn-config.h"
26 #include "sn-item.h"
27 
28 G_BEGIN_DECLS
29 
30 typedef struct _SnBoxClass SnBoxClass;
31 typedef struct _SnBox      SnBox;
32 
33 #define XFCE_TYPE_SN_BOX            (sn_box_get_type ())
34 #define XFCE_SN_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_SN_BOX, SnBox))
35 #define XFCE_SN_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_SN_BOX, SnBoxClass))
36 #define XFCE_IS_SN_BOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_SN_BOX))
37 #define XFCE_IS_SN_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_SN_BOX))
38 #define XFCE_SN_BOX_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_SN_BOX, SnBoxClass))
39 
40 GType                  sn_box_get_type                         (void) G_GNUC_CONST;
41 
42 void                   sn_box_remove_item                      (SnBox                   *box,
43                                                                 SnItem                  *item);
44 
45 GtkWidget             *sn_box_new                              (SnConfig                *config);
46 gboolean               sn_box_has_hidden_items                 (SnBox                   *box);
47 void                   sn_box_set_show_hidden                  (SnBox                   *box,
48                                                                 gboolean                 show_hidden);
49 
50     G_END_DECLS
51 
52 #endif /* !__SN_BOX_H__ */
53