1 /* $Id: hypertext.hg,v 1.3 2006/04/12 11:11:24 murrayc Exp $ */
3 /* Copyright (C) 2003 The gtkmm Development Team
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.
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.
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.
22 _PINCLUDE(glibmm/private/object_p.h)
24 #include <atkmm/hyperlink.h>
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS
29 typedef struct _AtkHypertextIface AtkHypertextIface;
30 typedef struct _AtkHypertext AtkHypertext;
32 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
34 /** The ATK interface which provides standard mechanism for manipulating hyperlinks.
42 class Hypertext : public Glib::Interface
44 _CLASS_INTERFACE(Hypertext, AtkHypertext, ATK_HYPERTEXT, AtkHypertextIface)
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)
52 _WRAP_SIGNAL(void link_selected(int link_index), "link_selected")
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)