* src/hildon-bread-crumb-trail.c: * src/hildon-bread-crumb-trail.h: * src/hildon...
[hildon] / src / hildon-bread-crumb.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_H__
27 #define __HILDON_BREAD_CRUMB_H__
28
29 #include <gtk/gtk.h>
30
31 G_BEGIN_DECLS
32
33 typedef struct _HildonBreadCrumb        HildonBreadCrumb;
34 typedef struct _HildonBreadCrumbClass   HildonBreadCrumbClass;
35 typedef struct _HildonBreadCrumbPrivate HildonBreadCrumbPrivate;
36
37 #define HILDON_TYPE_BREAD_CRUMB                 (hildon_bread_crumb_get_type ())
38 #define HILDON_BREAD_CRUMB(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumb))
39 #define HILDON_BREAD_CRUMB_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumbClass))
40 #define HILDON_IS_BREAD_CRUMB(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_BREAD_CRUMB))
41 #define HILDON_IS_BREAD_CRUMB_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_BREAD_CRUMB))
42 #define HILDON_BREAD_CRUMB_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumbClass))
43
44 struct _HildonBreadCrumb
45 {
46   GtkButton parent;
47
48   HildonBreadCrumbPrivate *priv;
49 };
50
51 struct _HildonBreadCrumbClass
52 {
53   GtkButtonClass parent_class;
54 };
55
56 GType hildon_bread_crumb_get_type (void) G_GNUC_CONST;
57 GtkWidget *hildon_bread_crumb_new (const gchar* text);
58 void hildon_bread_crumb_set_text (HildonBreadCrumb *item, const gchar *text);
59 const gchar* hildon_bread_crumb_get_text (HildonBreadCrumb *item);
60 void hildon_bread_crumb_get_natural_size (HildonBreadCrumb *item,
61                                           gint *width, gint *height);
62 void hildon_bread_crumb_set_show_separator (HildonBreadCrumb *item,
63                                             gboolean show_separator);
64
65 G_END_DECLS
66
67 #endif