Debian Codegraph @

gtk/a11y/gtkcellaccessibleparent.h

raw
1 /* GTK+ - accessibility implementations
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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __GTK_CELL_ACCESSIBLE_PARENT_H__
19 #define __GTK_CELL_ACCESSIBLE_PARENT_H__
20
21 #if !defined (__GTK_A11Y_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk-a11y.h> can be included directly."
23 #endif
24
25 #include <atk/atk.h>
26 #include <gtk/a11y/gtkcellaccessible.h>
27
28 G_BEGIN_DECLS
29
30 /*
31 * The GtkCellAccessibleParent interface should be supported by any object
32 * which contains children which are flyweights, i.e. do not have corresponding
33 * widgets and the children need help from their parent to provide
34 * functionality. One example is GtkTreeViewAccessible where the children
35 * GtkCellAccessible need help from the GtkTreeViewAccessible in order to
36 * implement atk_component_get_extents().
37 */
38
39 #define GTK_TYPE_CELL_ACCESSIBLE_PARENT (gtk_cell_accessible_parent_get_type ())
40 #define GTK_IS_CELL_ACCESSIBLE_PARENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT)
41 #define GTK_CELL_ACCESSIBLE_PARENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParent)
42 #define GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParentIface))
43
44 typedef struct _GtkCellAccessibleParent GtkCellAccessibleParent;
45 typedef struct _GtkCellAccessibleParentIface GtkCellAccessibleParentIface;
46
47 struct _GtkCellAccessibleParentIface
48 {
49 GTypeInterface parent;
50 void ( *get_cell_extents) (GtkCellAccessibleParent *parent,
51 GtkCellAccessible *cell,
52 gint *x,
53 gint *y,
54 gint *width,
55 gint *height,
56 AtkCoordType coord_type);
57 void ( *get_cell_area) (GtkCellAccessibleParent *parent,
58 GtkCellAccessible *cell,
59 GdkRectangle *cell_rect);
60 gboolean ( *grab_focus) (GtkCellAccessibleParent *parent,
61 GtkCellAccessible *cell);
62 int ( *get_child_index) (GtkCellAccessibleParent *parent,
63 GtkCellAccessible *cell);
64 GtkCellRendererState
65 ( *get_renderer_state) (GtkCellAccessibleParent *parent,
66 GtkCellAccessible *cell);
67 /* actions */
68 void ( *expand_collapse) (GtkCellAccessibleParent *parent,
69 GtkCellAccessible *cell);
70 void ( *activate) (GtkCellAccessibleParent *parent,
71 GtkCellAccessible *cell);
72 void ( *edit) (GtkCellAccessibleParent *parent,
73 GtkCellAccessible *cell);
74 /* end of actions */
75 void ( *update_relationset) (GtkCellAccessibleParent *parent,
76 GtkCellAccessible *cell,
77 AtkRelationSet *relationset);
78 void ( *get_cell_position) (GtkCellAccessibleParent *parent,
79 GtkCellAccessible *cell,
80 gint *row,
81 gint *column);
82 GPtrArray * ( *get_column_header_cells) (GtkCellAccessibleParent *parent,
83 GtkCellAccessible *cell);
84 GPtrArray * ( *get_row_header_cells) (GtkCellAccessibleParent *parent,
85 GtkCellAccessible *cell);
86 };
87
88 GDK_AVAILABLE_IN_ALL
89 GType gtk_cell_accessible_parent_get_type (void);
90
91 GDK_AVAILABLE_IN_ALL
92 void gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent,
93 GtkCellAccessible *cell,
94 gint *x,
95 gint *y,
96 gint *width,
97 gint *height,
98 AtkCoordType coord_type);
99 GDK_AVAILABLE_IN_ALL
100 void gtk_cell_accessible_parent_get_cell_area (GtkCellAccessibleParent *parent,
101 GtkCellAccessible *cell,
102 GdkRectangle *cell_rect);
103 GDK_AVAILABLE_IN_ALL
104 gboolean gtk_cell_accessible_parent_grab_focus (GtkCellAccessibleParent *parent,
105 GtkCellAccessible *cell);
106 GDK_AVAILABLE_IN_ALL
107 int gtk_cell_accessible_parent_get_child_index (GtkCellAccessibleParent *parent,
108 GtkCellAccessible *cell);
109 GDK_AVAILABLE_IN_ALL
110 GtkCellRendererState
111 gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
112 GtkCellAccessible *cell);
113 GDK_AVAILABLE_IN_ALL
114 void gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
115 GtkCellAccessible *cell);
116 GDK_AVAILABLE_IN_ALL
117 void gtk_cell_accessible_parent_activate (GtkCellAccessibleParent *parent,
118 GtkCellAccessible *cell);
119 GDK_AVAILABLE_IN_ALL
120 void gtk_cell_accessible_parent_edit (GtkCellAccessibleParent *parent,
121 GtkCellAccessible *cell);
122 GDK_AVAILABLE_IN_3_12
123 void gtk_cell_accessible_parent_update_relationset (GtkCellAccessibleParent *parent,
124 GtkCellAccessible *cell,
125 AtkRelationSet *relationset);
126 GDK_AVAILABLE_IN_ALL
127 void gtk_cell_accessible_parent_get_cell_position(GtkCellAccessibleParent *parent,
128 GtkCellAccessible *cell,
129 gint *row,
130 gint *column);
131 GDK_AVAILABLE_IN_ALL
132 GPtrArray *gtk_cell_accessible_parent_get_column_header_cells (GtkCellAccessibleParent *parent,
133 GtkCellAccessible *cell);
134 GDK_AVAILABLE_IN_ALL
135 GPtrArray *gtk_cell_accessible_parent_get_row_header_cells (GtkCellAccessibleParent *parent,
136 GtkCellAccessible *cell);
137
138 G_END_DECLS
139
140 #endif /* __GTK_CELL_ACCESSIBLE_PARENT_H__ */