1 /* GAIL - The GNOME Accessibility Implementation Library
3 * Copyright 2001 Sun Microsystems Inc.
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.
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.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GAIL_CELL_PARENT_H__
22 #define __GAIL_CELL_PARENT_H__
30 * The GailCellParent interface should be supported by any object which
31 * contains children which are flyweights, i.e. do not have corresponding
32 * widgets and the children need help from their parent to provide
33 * functionality. One example is GailTreeView where the children GailCell
34 * need help from the GailTreeView in order to implement
35 * atk_component_get_extents
38 #define GAIL_TYPE_CELL_PARENT (gail_cell_parent_get_type ())
39 #define GAIL_IS_CELL_PARENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAIL_TYPE_CELL_PARENT)
40 #define GAIL_CELL_PARENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), GAIL_TYPE_CELL_PARENT, GailCellParent)
41 #define GAIL_CELL_PARENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GAIL_TYPE_CELL_PARENT, GailCellParentIface))
43 #ifndef _TYPEDEF_GAIL_CELL_PARENT_
44 #define _TYPEDEF_GAIL_CELL_PARENT_
45 typedef struct _GailCellParent GailCellParent;
47 typedef struct _GailCellParentIface GailCellParentIface;
49 struct _GailCellParentIface
51 GTypeInterface parent;
52 void ( *get_cell_extents) (GailCellParent *parent,
58 AtkCoordType coord_type);
59 void ( *get_cell_area) (GailCellParent *parent,
61 GdkRectangle *cell_rect);
62 gboolean ( *grab_focus) (GailCellParent *parent,
66 GType gail_cell_parent_get_type (void);
68 void gail_cell_parent_get_cell_extents (GailCellParent *parent,
74 AtkCoordType coord_type
76 void gail_cell_parent_get_cell_area (GailCellParent *parent,
78 GdkRectangle *cell_rect);
79 gboolean gail_cell_parent_grab_focus (GailCellParent *parent,
84 #endif /* __GAIL_CELL_PARENT_H__ */