Blame modules/other/gail/gailcellparent.h

Packit 98cdb6
/* GAIL - The GNOME Accessibility Implementation Library
Packit 98cdb6
 *
Packit 98cdb6
 * Copyright 2001 Sun Microsystems Inc.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GAIL_CELL_PARENT_H__
Packit 98cdb6
#define __GAIL_CELL_PARENT_H__
Packit 98cdb6
Packit 98cdb6
#include <atk/atk.h>
Packit 98cdb6
#include <gail/gailcell.h>
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * The GailCellParent interface should be supported by any object which
Packit 98cdb6
 * contains children which are flyweights, i.e. do not have corresponding
Packit 98cdb6
 * widgets and the children need help from their parent to provide
Packit 98cdb6
 * functionality. One example is GailTreeView where the children GailCell
Packit 98cdb6
 * need help from the GailTreeView in order to implement 
Packit 98cdb6
 * atk_component_get_extents
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#define GAIL_TYPE_CELL_PARENT            (gail_cell_parent_get_type ())
Packit 98cdb6
#define GAIL_IS_CELL_PARENT(obj)         G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAIL_TYPE_CELL_PARENT)
Packit 98cdb6
#define GAIL_CELL_PARENT(obj)            G_TYPE_CHECK_INSTANCE_CAST ((obj), GAIL_TYPE_CELL_PARENT, GailCellParent)
Packit 98cdb6
#define GAIL_CELL_PARENT_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GAIL_TYPE_CELL_PARENT, GailCellParentIface))
Packit 98cdb6
Packit 98cdb6
#ifndef _TYPEDEF_GAIL_CELL_PARENT_
Packit 98cdb6
#define _TYPEDEF_GAIL_CELL_PARENT_
Packit 98cdb6
typedef struct _GailCellParent GailCellParent;
Packit 98cdb6
#endif
Packit 98cdb6
typedef struct _GailCellParentIface GailCellParentIface;
Packit 98cdb6
Packit 98cdb6
struct _GailCellParentIface
Packit 98cdb6
{
Packit 98cdb6
  GTypeInterface parent;
Packit 98cdb6
  void                  ( *get_cell_extents)      (GailCellParent        *parent,
Packit 98cdb6
                                                   GailCell              *cell,
Packit 98cdb6
                                                   gint                  *x,
Packit 98cdb6
                                                   gint                  *y,
Packit 98cdb6
                                                   gint                  *width,
Packit 98cdb6
                                                   gint                  *height,
Packit 98cdb6
                                                   AtkCoordType          coord_type);
Packit 98cdb6
  void                  ( *get_cell_area)         (GailCellParent        *parent,
Packit 98cdb6
                                                   GailCell              *cell,
Packit 98cdb6
                                                   GdkRectangle          *cell_rect);
Packit 98cdb6
  gboolean              ( *grab_focus)            (GailCellParent        *parent,
Packit 98cdb6
                                                   GailCell              *cell);
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
GType  gail_cell_parent_get_type               (void);
Packit 98cdb6
Packit 98cdb6
void   gail_cell_parent_get_cell_extents       (GailCellParent        *parent,
Packit 98cdb6
                                                GailCell              *cell,
Packit 98cdb6
                                                gint                  *x,
Packit 98cdb6
                                                gint                  *y,
Packit 98cdb6
                                                gint                  *width,
Packit 98cdb6
                                                gint                  *height,
Packit 98cdb6
                                                AtkCoordType          coord_type
Packit 98cdb6
);
Packit 98cdb6
void  gail_cell_parent_get_cell_area           (GailCellParent        *parent,
Packit 98cdb6
                                                GailCell              *cell,
Packit 98cdb6
                                                GdkRectangle          *cell_rect);
Packit 98cdb6
gboolean gail_cell_parent_grab_focus           (GailCellParent        *parent,
Packit 98cdb6
                                                GailCell              *cell);
Packit 98cdb6
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __GAIL_CELL_PARENT_H__ */