Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

atkrelationset.h 3.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* ATK - Accessibility Toolkit
  2. * Copyright 2001 Sun Microsystems Inc.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
  20. #error "Only <atk/atk.h> can be included directly."
  21. #endif
  22. #ifndef __ATK_RELATION_SET_H__
  23. #define __ATK_RELATION_SET_H__
  24. G_BEGIN_DECLS
  25. #include <glib-object.h>
  26. #include <atk/atkobject.h>
  27. #include <atk/atkrelation.h>
  28. #define ATK_TYPE_RELATION_SET (atk_relation_set_get_type ())
  29. #define ATK_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION_SET, AtkRelationSet))
  30. #define ATK_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION_SET, AtkRelationSetClass))
  31. #define ATK_IS_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION_SET))
  32. #define ATK_IS_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION_SET))
  33. #define ATK_RELATION_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION_SET, AtkRelationSetClass))
  34. typedef struct _AtkRelationSetClass AtkRelationSetClass;
  35. struct _AtkRelationSet
  36. {
  37. GObject parent;
  38. GPtrArray *relations;
  39. };
  40. struct _AtkRelationSetClass
  41. {
  42. GObjectClass parent;
  43. AtkFunction pad1;
  44. AtkFunction pad2;
  45. };
  46. GType atk_relation_set_get_type (void);
  47. AtkRelationSet* atk_relation_set_new (void);
  48. gboolean atk_relation_set_contains (AtkRelationSet *set,
  49. AtkRelationType relationship);
  50. void atk_relation_set_remove (AtkRelationSet *set,
  51. AtkRelation *relation);
  52. void atk_relation_set_add (AtkRelationSet *set,
  53. AtkRelation *relation);
  54. gint atk_relation_set_get_n_relations (AtkRelationSet *set);
  55. AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set,
  56. gint i);
  57. AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set,
  58. AtkRelationType relationship);
  59. void atk_relation_set_add_relation_by_type (AtkRelationSet *set,
  60. AtkRelationType relationship,
  61. AtkObject *target);
  62. G_END_DECLS
  63. #endif /* __ATK_RELATION_SET_H__ */