]> Pileus Git - ~andy/gtk/blob - gtk/a11y/gtkcellaccessibleparent.h
Change FSF Address
[~andy/gtk] / gtk / a11y / gtkcellaccessibleparent.h
1 /* GAIL - The GNOME Accessibility Implementation Library
2  *
3  * Copyright 2001 Sun Microsystems Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __GTK_CELL_ACCESSIBLE_PARENT_H__
20 #define __GTK_CELL_ACCESSIBLE_PARENT_H__
21
22 #include <atk/atk.h>
23 #include "gtkcellaccessible.h"
24
25 G_BEGIN_DECLS
26
27 /*
28  * The GtkCellAccessibleParent interface should be supported by any object
29  * which contains children which are flyweights, i.e. do not have corresponding
30  * widgets and the children need help from their parent to provide
31  * functionality. One example is GtkTreeViewAccessible where the children
32  * GtkCellAccessible need help from the GtkTreeViewAccessible in order to
33  * implement atk_component_get_extents().
34  */
35
36 #define GTK_TYPE_CELL_ACCESSIBLE_PARENT            (_gtk_cell_accessible_parent_get_type ())
37 #define GTK_IS_CELL_ACCESSIBLE_PARENT(obj)         G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT)
38 #define GTK_CELL_ACCESSIBLE_PARENT(obj)            G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParent)
39 #define GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_ACCESSIBLE_PARENT, GtkCellAccessibleParentIface))
40
41 typedef struct _GtkCellAccessibleParent GtkCellAccessibleParent;
42 typedef struct _GtkCellAccessibleParentIface GtkCellAccessibleParentIface;
43
44 struct _GtkCellAccessibleParentIface
45 {
46   GTypeInterface parent;
47   void     ( *get_cell_extents) (GtkCellAccessibleParent *parent,
48                                  GtkCellAccessible       *cell,
49                                  gint                    *x,
50                                  gint                    *y,
51                                  gint                    *width,
52                                  gint                    *height,
53                                  AtkCoordType             coord_type);
54   void     ( *get_cell_area)    (GtkCellAccessibleParent *parent,
55                                  GtkCellAccessible       *cell,
56                                  GdkRectangle            *cell_rect);
57   gboolean ( *grab_focus)       (GtkCellAccessibleParent *parent,
58                                  GtkCellAccessible       *cell);
59   int      ( *get_child_index)  (GtkCellAccessibleParent *parent,
60                                  GtkCellAccessible       *cell);
61   GtkCellRendererState
62            ( *get_renderer_state) (GtkCellAccessibleParent *parent,
63                                  GtkCellAccessible       *cell);
64   /* actions */
65   void     ( *expand_collapse)  (GtkCellAccessibleParent *parent,
66                                  GtkCellAccessible       *cell);
67   void     ( *activate)         (GtkCellAccessibleParent *parent,
68                                  GtkCellAccessible       *cell);
69   void     ( *edit)             (GtkCellAccessibleParent *parent,
70                                  GtkCellAccessible       *cell);
71 };
72
73 GType    _gtk_cell_accessible_parent_get_type         (void);
74
75 void     _gtk_cell_accessible_parent_get_cell_extents (GtkCellAccessibleParent *parent,
76                                                        GtkCellAccessible       *cell,
77                                                        gint                    *x,
78                                                        gint                    *y,
79                                                        gint                    *width,
80                                                        gint                    *height,
81                                                        AtkCoordType             coord_type);
82 void     _gtk_cell_accessible_parent_get_cell_area    (GtkCellAccessibleParent *parent,
83                                                        GtkCellAccessible       *cell,
84                                                        GdkRectangle            *cell_rect);
85 gboolean _gtk_cell_accessible_parent_grab_focus       (GtkCellAccessibleParent *parent,
86                                                        GtkCellAccessible       *cell);
87 int      _gtk_cell_accessible_parent_get_child_index  (GtkCellAccessibleParent *parent,
88                                                        GtkCellAccessible       *cell);
89 GtkCellRendererState
90          _gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
91                                                        GtkCellAccessible       *cell);
92 void     _gtk_cell_accessible_parent_expand_collapse  (GtkCellAccessibleParent *parent,
93                                                        GtkCellAccessible       *cell);
94 void     _gtk_cell_accessible_parent_activate         (GtkCellAccessibleParent *parent,
95                                                        GtkCellAccessible       *cell);
96 void     _gtk_cell_accessible_parent_edit             (GtkCellAccessibleParent *parent,
97                                                        GtkCellAccessible       *cell);
98
99 G_END_DECLS
100
101 #endif /* __GTK_CELL_ACCESSIBLE_PARENT_H__ */