Merging upstream version 0.7.0 (Closes: #493243, #510888, #567617, #699414, #709777...
[debian/lxpanel.git] / src / icon-grid.h
CommitLineData
1ea75322 1/**
00916e98 2 * Copyright (c) 2009-2014 LxDE Developers, see the file AUTHORS for details.
1ea75322
DB
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
00916e98
AG
19#ifndef __ICON_GRID_H__
20#define __ICON_GRID_H__ 1
1ea75322
DB
21
22#include <gtk/gtk.h>
23
00916e98 24G_BEGIN_DECLS
1ea75322 25
00916e98
AG
26#define PANEL_TYPE_ICON_GRID (panel_icon_grid_get_type())
27#define PANEL_ICON_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
28 PANEL_TYPE_ICON_GRID, PanelIconGrid))
29#define PANEL_ICON_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
30 PANEL_TYPE_ICON_GRID, PanelIconGridClass))
31#define PANEL_IS_ICON_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
32 PANEL_TYPE_ICON_GRID))
33#define PANEL_IS_ICON_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
34 PANEL_TYPE_ICON_GRID))
1ea75322 35
00916e98 36extern GType panel_icon_grid_get_type (void) G_GNUC_CONST;
1ea75322 37
00916e98
AG
38typedef struct _PanelIconGrid PanelIconGrid;
39typedef struct _PanelIconGridClass PanelIconGridClass;
1ea75322 40
00916e98 41extern GtkWidget * panel_icon_grid_new(
1ea75322
DB
42 GtkOrientation orientation, gint child_width, gint child_height, gint spacing, gint border, gint target_dimension);
43 /* Create an icon grid */
00916e98 44extern void panel_icon_grid_set_constrain_width(PanelIconGrid * ig, gboolean constrain_width);
1ea75322 45 /* Set the constrain-width property */
00916e98
AG
46/* extern void panel_icon_grid_set_fill_width(PanelIconGrid * ig, gboolean fill_width);
47 Set the fill-width property */
48extern void panel_icon_grid_set_geometry(PanelIconGrid * ig,
1ea75322
DB
49 GtkOrientation orientation, gint child_width, gint child_height, gint spacing, gint border, gint target_dimension);
50 /* Change the geometry of an icon grid */
00916e98
AG
51extern gint panel_icon_grid_get_child_position(PanelIconGrid * ig, GtkWidget * child);
52 /* Get the index of an icon grid element. */
53extern void panel_icon_grid_reorder_child(PanelIconGrid * ig, GtkWidget * child, gint position);
1ea75322 54 /* Reorder the position of a child in the icon grid */
00916e98
AG
55
56G_END_DECLS
1ea75322
DB
57
58#endif