* examples/hildon-bread-crumb-trail-example.c: * src/Makefile.am: * src/hildon-bread...
[hildon] / src / hildon-bread-crumb-trail.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2007 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  * Author: Xan Lopez <xan.lopez@nokia.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; version 2.1 of
12  * the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23  *
24  */
25
26 #ifndef __HILDON_BREAD_CRUMB_TRAIL_H__
27 #define __HILDON_BREAD_CRUMB_TRAIL_H__
28
29 #include <gtk/gtk.h>
30 #include "hildon-bread-crumb.h"
31 #include "hildon-bread-crumb-widget.h"
32
33 G_BEGIN_DECLS
34
35 typedef struct _HildonBreadCrumbTrail        HildonBreadCrumbTrail;
36 typedef struct _HildonBreadCrumbTrailClass   HildonBreadCrumbTrailClass;
37 typedef struct _HildonBreadCrumbTrailPrivate HildonBreadCrumbTrailPrivate;
38
39 #define HILDON_TYPE_BREAD_CRUMB_TRAIL                 (hildon_bread_crumb_trail_get_type ())
40 #define HILDON_BREAD_CRUMB_TRAIL(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_BREAD_CRUMB_TRAIL, HildonBreadCrumbTrail))
41 #define HILDON_BREAD_CRUMB_TRAIL_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_BREAD_CRUMB_TRAIL, HildonBreadCrumbTrailClass))
42 #define HILDON_IS_BREAD_CRUMB_TRAIL(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_BREAD_CRUMB_TRAIL))
43 #define HILDON_IS_BREAD_CRUMB_TRAIL_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_BREAD_CRUMB_TRAIL))
44 #define HILDON_BREAD_CRUMB_TRAIL_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_BREAD_CRUMB_TRAIL, HildonBreadCrumbTrailClass))
45
46 struct _HildonBreadCrumbTrail
47 {
48   GtkContainer parent;
49
50   HildonBreadCrumbTrailPrivate *priv;
51 };
52
53 struct _HildonBreadCrumbTrailClass
54 {
55   GtkContainerClass parent_class;
56
57   void (*crumb_clicked) (HildonBreadCrumbTrail *bct,
58                          gpointer id);
59 };
60
61 GType hildon_bread_crumb_trail_get_type (void) G_GNUC_CONST;
62 GtkWidget *hildon_bread_crumb_trail_new (void);
63 void hildon_bread_crumb_trail_push (HildonBreadCrumbTrail *bct, HildonBreadCrumb *item,
64                                     gpointer id, GDestroyNotify  notify);
65 void hildon_bread_crumb_trail_push_text (HildonBreadCrumbTrail *bct, const gchar *text,
66                                          gpointer id, GDestroyNotify notify);
67 void hildon_bread_crumb_trail_push_icon (HildonBreadCrumbTrail *bct,
68                                          const gchar *text,
69                                          GtkWidget *icon,
70                                          gpointer id,
71                                          GDestroyNotify destroy);
72 void hildon_bread_crumb_trail_pop (HildonBreadCrumbTrail *bct);
73 void hildon_bread_crumb_trail_clear (HildonBreadCrumbTrail *bct);
74
75 G_END_DECLS
76
77 #endif