1 /* GTK+ - accessibility implementations
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, see <http://www.gnu.org/licenses/>.
18 #ifndef __GTK_CELL_ACCESSIBLE_PARENT_H__
19 #define __GTK_CELL_ACCESSIBLE_PARENT_H__
21 #if !defined (__GTK_A11Y_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk-a11y.h> can be included directly."
26 #include <gtk/a11y/gtkcellaccessible.h>
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().
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))
44 typedef struct _GtkCellAccessibleParent GtkCellAccessibleParent;
45 typedef struct _GtkCellAccessibleParentIface GtkCellAccessibleParentIface;
47 struct _GtkCellAccessibleParentIface
49 GTypeInterface parent;
50 void ( *get_cell_extents) (GtkCellAccessibleParent *parent,
51 GtkCellAccessible *cell,
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);
65 ( *get_renderer_state) (GtkCellAccessibleParent *parent,
66 GtkCellAccessible *cell);
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);
76 GType gtk_cell_accessible_parent_get_type (void);
78 void gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent,
79 GtkCellAccessible *cell,
84 AtkCoordType coord_type);
85 void gtk_cell_accessible_parent_get_cell_area (GtkCellAccessibleParent *parent,
86 GtkCellAccessible *cell,
87 GdkRectangle *cell_rect);
88 gboolean gtk_cell_accessible_parent_grab_focus (GtkCellAccessibleParent *parent,
89 GtkCellAccessible *cell);
90 int gtk_cell_accessible_parent_get_child_index (GtkCellAccessibleParent *parent,
91 GtkCellAccessible *cell);
93 gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
94 GtkCellAccessible *cell);
95 void gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
96 GtkCellAccessible *cell);
97 void gtk_cell_accessible_parent_activate (GtkCellAccessibleParent *parent,
98 GtkCellAccessible *cell);
99 void gtk_cell_accessible_parent_edit (GtkCellAccessibleParent *parent,
100 GtkCellAccessible *cell);
104 #endif /* __GTK_CELL_ACCESSIBLE_PARENT_H__ */