Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / other-licenses / atk-1.0 / atk / atkselection.h
blob7b16930c1f4f623b5aaecdff47c3a43e94dd8150
1 /* ATK - Accessibility Toolkit
2 * Copyright 2001 Sun Microsystems Inc.
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.
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.
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.
20 #ifndef __ATK_SELECTION_H__
21 #define __ATK_SELECTION_H__
23 #include <atk/atkobject.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
30 * This AtkSelection interface provides the standard mechanism for an
31 * assistive technology to determine what the current selected children are,
32 * as well as modify the selection set. Any object that has children that
33 * can be selected should support the AtkSelection interface.
36 #define ATK_TYPE_SELECTION (atk_selection_get_type ())
37 #define ATK_IS_SELECTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_SELECTION)
38 #define ATK_SELECTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_SELECTION, AtkSelection)
39 #define ATK_SELECTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_SELECTION, AtkSelectionIface))
41 #ifndef _TYPEDEF_ATK_SELECTION_
42 #define _TYPEDEF_ATK_SELECTION_
43 typedef struct _AtkSelection AtkSelection;
44 #endif
45 typedef struct _AtkSelectionIface AtkSelectionIface;
47 struct _AtkSelectionIface
49 GTypeInterface parent;
51 gboolean (* add_selection) (AtkSelection *selection,
52 gint i);
53 gboolean (* clear_selection) (AtkSelection *selection);
54 AtkObject* (* ref_selection) (AtkSelection *selection,
55 gint i);
56 gint (* get_selection_count) (AtkSelection *selection);
57 gboolean (* is_child_selected) (AtkSelection *selection,
58 gint i);
59 gboolean (* remove_selection) (AtkSelection *selection,
60 gint i);
61 gboolean (* select_all_selection) (AtkSelection *selection);
63 /* signal handlers */
65 void (*selection_changed) (AtkSelection *selection);
67 AtkFunction pad1;
68 AtkFunction pad2;
71 GType atk_selection_get_type (void);
73 gboolean atk_selection_add_selection (AtkSelection *selection,
74 gint i);
76 gboolean atk_selection_clear_selection (AtkSelection *selection);
78 AtkObject* atk_selection_ref_selection (AtkSelection *selection,
79 gint i);
81 gint atk_selection_get_selection_count (AtkSelection *selection);
83 gboolean atk_selection_is_child_selected (AtkSelection *selection,
84 gint i);
86 gboolean atk_selection_remove_selection (AtkSelection *selection,
87 gint i);
89 gboolean atk_selection_select_all_selection (AtkSelection *selection);
91 #ifdef __cplusplus
93 #endif /* __cplusplus */
96 #endif /* __ATK_SELECTION_H__ */