Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

96 lignes
3.7 KiB

  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_SELECTION_H__
  23. #define __ATK_SELECTION_H__
  24. #include <atk/atkobject.h>
  25. G_BEGIN_DECLS
  26. /*
  27. * This AtkSelection interface provides the standard mechanism for an
  28. * assistive technology to determine what the current selected children are,
  29. * as well as modify the selection set. Any object that has children that
  30. * can be selected should support the AtkSelection interface.
  31. */
  32. #define ATK_TYPE_SELECTION (atk_selection_get_type ())
  33. #define ATK_IS_SELECTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_SELECTION)
  34. #define ATK_SELECTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_SELECTION, AtkSelection)
  35. #define ATK_SELECTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_SELECTION, AtkSelectionIface))
  36. #ifndef _TYPEDEF_ATK_SELECTION_
  37. #define _TYPEDEF_ATK_SELECTION_
  38. typedef struct _AtkSelection AtkSelection;
  39. #endif
  40. typedef struct _AtkSelectionIface AtkSelectionIface;
  41. struct _AtkSelectionIface
  42. {
  43. GTypeInterface parent;
  44. gboolean (* add_selection) (AtkSelection *selection,
  45. gint i);
  46. gboolean (* clear_selection) (AtkSelection *selection);
  47. AtkObject* (* ref_selection) (AtkSelection *selection,
  48. gint i);
  49. gint (* get_selection_count) (AtkSelection *selection);
  50. gboolean (* is_child_selected) (AtkSelection *selection,
  51. gint i);
  52. gboolean (* remove_selection) (AtkSelection *selection,
  53. gint i);
  54. gboolean (* select_all_selection) (AtkSelection *selection);
  55. /* signal handlers */
  56. void (*selection_changed) (AtkSelection *selection);
  57. AtkFunction pad1;
  58. AtkFunction pad2;
  59. };
  60. GType atk_selection_get_type (void);
  61. gboolean atk_selection_add_selection (AtkSelection *selection,
  62. gint i);
  63. gboolean atk_selection_clear_selection (AtkSelection *selection);
  64. AtkObject* atk_selection_ref_selection (AtkSelection *selection,
  65. gint i);
  66. gint atk_selection_get_selection_count (AtkSelection *selection);
  67. gboolean atk_selection_is_child_selected (AtkSelection *selection,
  68. gint i);
  69. gboolean atk_selection_remove_selection (AtkSelection *selection,
  70. gint i);
  71. gboolean atk_selection_select_all_selection (AtkSelection *selection);
  72. G_END_DECLS
  73. #endif /* __ATK_SELECTION_H__ */