Debian Codegraph @

atk/src/hypertext.hg

raw
1 /* Copyright (C) 2003 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _DEFS(atkmm,atk)
18 _PINCLUDE(glibmm/private/object_p.h)
19
20 #include <atkmm/hyperlink.h>
21
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS
23 extern "C"
24 {
25 typedef struct _AtkHypertextIface AtkHypertextIface;
26 typedef struct _AtkHypertext AtkHypertext;
27 }
28 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
29
30 /** The ATK interface which provides standard mechanism for manipulating hyperlinks.
31 */
32 namespace Atk
33 {
34
35 class ATKMM_API Object;
36
37
38 class ATKMM_API Hypertext : public Glib::Interface
39 {
40 _CLASS_INTERFACE(Hypertext, AtkHypertext, ATK_HYPERTEXT, AtkHypertextIface, , , ATKMM_API)
41 public:
42
43 _WRAP_METHOD(Glib::RefPtr<Hyperlink> get_link(int link_index), atk_hypertext_get_link)
44 _WRAP_METHOD(Glib::RefPtr<const Hyperlink> get_link(int link_index) const, atk_hypertext_get_link, constversion)
45 _WRAP_METHOD(int get_n_links() const, atk_hypertext_get_n_links)
46 _WRAP_METHOD(int get_link_index(int char_index) const, atk_hypertext_get_link_index)
47
48 _WRAP_SIGNAL(void link_selected(int link_index), "link_selected")
49
50 #m4 _CONVERSION(`Glib::RefPtr<Hyperlink>',`AtkHyperlink*',`Glib::unwrap($3)')
51 _WRAP_VFUNC(Glib::RefPtr<Hyperlink> get_link(int link_index), get_link)
52 _WRAP_VFUNC(int get_n_links() const, get_n_links)
53 _WRAP_VFUNC(int get_link_index(int char_index) const, get_link_index)
54 };
55
56 } // namespace Atk