add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / atk / src / hypertext.hg
1 /* $Id: hypertext.hg,v 1.3 2006/04/12 11:11:24 murrayc Exp $ */
2
3 /* Copyright (C) 2003 The gtkmm Development Team
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20
21 _DEFS(atkmm,atk)
22 _PINCLUDE(glibmm/private/object_p.h)
23
24 #include <atkmm/hyperlink.h>
25
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS
27 extern "C"
28 {
29   typedef struct _AtkHypertextIface AtkHypertextIface;
30   typedef struct _AtkHypertext      AtkHypertext;
31 }
32 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
33
34 /** The ATK interface which provides standard mechanism for manipulating hyperlinks.
35  */
36 namespace Atk
37 {
38
39 class Object;
40
41
42 class Hypertext : public Glib::Interface
43 {
44   _CLASS_INTERFACE(Hypertext, AtkHypertext, ATK_HYPERTEXT, AtkHypertextIface)
45 public:
46
47   _WRAP_METHOD(Glib::RefPtr<Hyperlink> get_link(int link_index), atk_hypertext_get_link)
48   _WRAP_METHOD(Glib::RefPtr<const Hyperlink> get_link(int link_index) const, atk_hypertext_get_link, constversion)
49   _WRAP_METHOD(int get_n_links() const, atk_hypertext_get_n_links)
50   _WRAP_METHOD(int get_link_index(int char_index) const, atk_hypertext_get_link_index)
51
52   _WRAP_SIGNAL(void link_selected(int link_index), "link_selected")
53
54 #m4 _CONVERSION(`Glib::RefPtr<Hyperlink>',`AtkHyperlink*',`Glib::unwrap($3)')
55   _WRAP_VFUNC(Glib::RefPtr<Hyperlink> get_link(int link_index), get_link)
56   _WRAP_VFUNC(int get_n_links() const, get_n_links)
57   _WRAP_VFUNC(int get_link_index(int char_index) const, get_link_index)
58 };
59
60 } // namespace Atk
61