1
/*
2
 * This file is a part of hildon
3
 *
4
 * Copyright (C) 2007 Nokia Corporation, all rights reserved.
5
 *
6
 * Contact: Rodrigo Novo <rodrigo.novo@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_DISABLE_DEPRECATED
27
28
#ifndef __HILDON_BREAD_CRUMB_H__
29
#define __HILDON_BREAD_CRUMB_H__
30
31
#include <gtk/gtk.h>
32
33
G_BEGIN_DECLS
34
35
typedef struct _HildonBreadCrumb        HildonBreadCrumb;
36
typedef struct _HildonBreadCrumbIface   HildonBreadCrumbIface;
37
38
#define HILDON_TYPE_BREAD_CRUMB           (hildon_bread_crumb_get_type ())
39
#define HILDON_BREAD_CRUMB(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumb))
40
#define HILDON_BREAD_CRUMB_CLASS(obj)     (G_TYPE_CHECK_CLASS_CAST ((obj), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumbIface))
41
#define HILDON_IS_BREAD_CRUMB(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_BREAD_CRUMB))
42
#define HILDON_BREAD_CRUMB_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), HILDON_TYPE_BREAD_CRUMB, HildonBreadCrumbIface))
43
44
struct _HildonBreadCrumbIface
45
{
46
  GTypeInterface g_iface;
47
48
  /* virtual table */
49
  void (* get_natural_size) (HildonBreadCrumb *bread_crumb,
50
                             gint *natural_width, gint *natural_height);
51
  /* signals */
52
  void (* crumb_activated) (HildonBreadCrumb *bread_crumb);
53
};
54
55
GType hildon_bread_crumb_get_type (void) G_GNUC_CONST;
56
void hildon_bread_crumb_get_natural_size (HildonBreadCrumb *bread_crumb,
57
                                          gint *width, gint *height);
58
void hildon_bread_crumb_activated (HildonBreadCrumb *bread_crumb);
59
60
G_END_DECLS
61
62
#endif
63
64
#endif /* HILDON_DISABLE_DEPRECATED */