File indexing completed on 2025-01-30 09:32:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __ATK_RELATION_SET_H__
0021 #define __ATK_RELATION_SET_H__
0022
0023 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined(__ATK_H_INSIDE__) && !defined(ATK_COMPILATION)
0024 #error "Only <atk/atk.h> can be included directly."
0025 #endif
0026
0027 G_BEGIN_DECLS
0028
0029 #include <atk/atkobject.h>
0030 #include <atk/atkrelation.h>
0031 #include <glib-object.h>
0032
0033 #define ATK_TYPE_RELATION_SET (atk_relation_set_get_type ())
0034 #define ATK_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION_SET, AtkRelationSet))
0035 #define ATK_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION_SET, AtkRelationSetClass))
0036 #define ATK_IS_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION_SET))
0037 #define ATK_IS_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION_SET))
0038 #define ATK_RELATION_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION_SET, AtkRelationSetClass))
0039
0040 typedef struct _AtkRelationSetClass AtkRelationSetClass;
0041
0042 struct _AtkRelationSet
0043 {
0044 GObject parent;
0045
0046 GPtrArray *relations;
0047 };
0048
0049 struct _AtkRelationSetClass
0050 {
0051 GObjectClass parent;
0052
0053 AtkFunction pad1;
0054 AtkFunction pad2;
0055 };
0056
0057 ATK_AVAILABLE_IN_ALL
0058 GType atk_relation_set_get_type (void);
0059
0060 ATK_AVAILABLE_IN_ALL
0061 AtkRelationSet *atk_relation_set_new (void);
0062 ATK_AVAILABLE_IN_ALL
0063 gboolean atk_relation_set_contains (AtkRelationSet *set,
0064 AtkRelationType relationship);
0065 ATK_AVAILABLE_IN_ALL
0066 gboolean atk_relation_set_contains_target (AtkRelationSet *set,
0067 AtkRelationType relationship,
0068 AtkObject *target);
0069 ATK_AVAILABLE_IN_ALL
0070 void atk_relation_set_remove (AtkRelationSet *set,
0071 AtkRelation *relation);
0072 ATK_AVAILABLE_IN_ALL
0073 void atk_relation_set_add (AtkRelationSet *set,
0074 AtkRelation *relation);
0075 ATK_AVAILABLE_IN_ALL
0076 gint atk_relation_set_get_n_relations (AtkRelationSet *set);
0077 ATK_AVAILABLE_IN_ALL
0078 AtkRelation *atk_relation_set_get_relation (AtkRelationSet *set,
0079 gint i);
0080 ATK_AVAILABLE_IN_ALL
0081 AtkRelation *atk_relation_set_get_relation_by_type (AtkRelationSet *set,
0082 AtkRelationType relationship);
0083 ATK_AVAILABLE_IN_ALL
0084 void atk_relation_set_add_relation_by_type (AtkRelationSet *set,
0085 AtkRelationType relationship,
0086 AtkObject *target);
0087
0088 G_END_DECLS
0089
0090 #endif