| 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 |
#include <atkmm/action.h> |
| 18 |
|
| 19 |
_DEFS(atkmm,atk) |
| 20 |
_PINCLUDE(glibmm/private/object_p.h) |
| 21 |
_PINCLUDE(atk/atkobject.h) |
| 22 |
|
| 23 |
namespace Atk |
| 24 |
{ |
| 25 |
|
| 26 |
class ATKMM_API Object; |
| 27 |
|
| 28 |
/** Encapsulates a link or set of links in a hypertext document. |
| 29 |
*/ |
| 30 |
class ATKMM_API Hyperlink : public Glib::Object, public Atk::Action |
| 31 |
{ |
| 32 |
_CLASS_GOBJECT(Hyperlink, AtkHyperlink, ATK_HYPERLINK, Glib::Object, GObject, , , ATKMM_API) |
| 33 |
_IMPLEMENTS_INTERFACE(Action) |
| 34 |
|
| 35 |
public: |
| 36 |
_WRAP_METHOD(Glib::ustring get_uri(int i) const, atk_hyperlink_get_uri) |
| 37 |
|
| 38 |
_WRAP_METHOD(Glib::RefPtr<Atk::Object> get_object(int i), atk_hyperlink_get_object, refreturn) |
| 39 |
_WRAP_METHOD(Glib::RefPtr<const Atk::Object> get_object(int i) const, atk_hyperlink_get_object, refreturn, constversion) |
| 40 |
|
| 41 |
_WRAP_METHOD(int get_end_index() const, atk_hyperlink_get_end_index) |
| 42 |
_WRAP_METHOD(int get_start_index() const, atk_hyperlink_get_start_index) |
| 43 |
|
| 44 |
_WRAP_METHOD(bool is_valid() const, atk_hyperlink_is_valid) |
| 45 |
_WRAP_METHOD(bool is_inline() const, atk_hyperlink_is_inline) |
| 46 |
|
| 47 |
_WRAP_METHOD(int get_n_anchors() const, atk_hyperlink_get_n_anchors) |
| 48 |
_IGNORE(atk_hyperlink_is_selected_link) // deprecated |
| 49 |
_WRAP_SIGNAL(void link_activated(), "link_activated") |
| 50 |
|
| 51 |
_WRAP_PROPERTY("selected-link", bool) |
| 52 |
_WRAP_PROPERTY("number-of-anchors", int) |
| 53 |
_WRAP_PROPERTY("end-index", int) |
| 54 |
_WRAP_PROPERTY("start-index", int) |
| 55 |
|
| 56 |
protected: |
| 57 |
_WRAP_VFUNC(gchar* get_uri(int i) const, get_uri) |
| 58 |
_WRAP_VFUNC(Glib::RefPtr<Atk::Object> get_object(int i), get_object) |
| 59 |
_WRAP_VFUNC(int get_end_index() const, get_end_index) |
| 60 |
_WRAP_VFUNC(int get_start_index() const, get_start_index) |
| 61 |
_WRAP_VFUNC(bool is_valid() const, is_valid) |
| 62 |
_WRAP_VFUNC(int get_n_anchors() const, get_n_anchors) |
| 63 |
_WRAP_VFUNC(guint link_state() const, link_state) |
| 64 |
_WRAP_VFUNC(bool is_selected_link() const, is_selected_link) |
| 65 |
}; |
| 66 |
|
| 67 |
} // namespace Atk |