Debian Codegraph @

atk/src/relationset.hg

raw
1 /* Copyright (C) 1998-2002 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/relation.h>
18 #include <atkmm/object.h>
19
20 _DEFS(atkmm,atk)
21 _PINCLUDE(glibmm/private/object_p.h)
22
23 namespace Atk
24 {
25
26 /** A set of Atk::Relations, normally the set of AtkRelations which an Atk::Object has.
27 */
28 class ATKMM_API RelationSet : public Glib::Object
29 {
30 _CLASS_GOBJECT(RelationSet, AtkRelationSet, ATK_RELATION_SET, Glib::Object, GObject, , , ATKMM_API)
31 protected:
32 _CTOR_DEFAULT
33
34 public:
35 _WRAP_CREATE()
36
37 _WRAP_METHOD(bool set_contains(RelationType relationship), atk_relation_set_contains)
38 _WRAP_METHOD(void set_remove(const Glib::RefPtr<Relation>& relation), atk_relation_set_remove)
39 _WRAP_METHOD(void set_add(const Glib::RefPtr<Relation>& relation), atk_relation_set_add)
40 _WRAP_METHOD(int get_n_relations() const, atk_relation_set_get_n_relations)
41 _WRAP_METHOD(Glib::RefPtr<Relation> get_relation(gint i), atk_relation_set_get_relation, refreturn)
42 _WRAP_METHOD(Glib::RefPtr<Relation> get_relation(RelationType relationship), atk_relation_set_get_relation_by_type, refreturn)
43
44 _WRAP_METHOD(void add_relation_by_type(RelationType relationship, const Glib::RefPtr<Atk::Object>& target), atk_relation_set_add_relation_by_type)
45 };
46
47 } // namespace Atk