Blame atk/atktable.h

Packit Service ef73c4
/* ATK -  Accessibility Toolkit
Packit Service ef73c4
 * Copyright 2001 Sun Microsystems Inc.
Packit Service ef73c4
 *
Packit Service ef73c4
 * This library is free software; you can redistribute it and/or
Packit Service ef73c4
 * modify it under the terms of the GNU Library General Public
Packit Service ef73c4
 * License as published by the Free Software Foundation; either
Packit Service ef73c4
 * version 2 of the License, or (at your option) any later version.
Packit Service ef73c4
 *
Packit Service ef73c4
 * This library is distributed in the hope that it will be useful,
Packit Service ef73c4
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service ef73c4
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service ef73c4
 * Library General Public License for more details.
Packit Service ef73c4
 *
Packit Service ef73c4
 * You should have received a copy of the GNU Library General Public
Packit Service ef73c4
 * License along with this library; if not, write to the
Packit Service ef73c4
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit Service ef73c4
 * Boston, MA 02111-1307, USA.
Packit Service ef73c4
 */
Packit Service ef73c4
Packit Service ef73c4
#ifndef __ATK_TABLE_H__
Packit Service ef73c4
#define __ATK_TABLE_H__
Packit Service ef73c4
Packit Service ef73c4
#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
Packit Service ef73c4
#error "Only <atk/atk.h> can be included directly."
Packit Service ef73c4
#endif
Packit Service ef73c4
Packit Service ef73c4
#include <atk/atkobject.h>
Packit Service ef73c4
Packit Service ef73c4
G_BEGIN_DECLS
Packit Service ef73c4
Packit Service ef73c4
#define ATK_TYPE_TABLE                    (atk_table_get_type ())
Packit Service ef73c4
#define ATK_IS_TABLE(obj)                 G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE)
Packit Service ef73c4
#define ATK_TABLE(obj)                    G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable)
Packit Service ef73c4
#define ATK_TABLE_GET_IFACE(obj)          (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface))
Packit Service ef73c4
Packit Service ef73c4
#ifndef _TYPEDEF_ATK_TABLE_
Packit Service ef73c4
#define _TYPEDEF_ATK_TABLE_
Packit Service ef73c4
typedef struct _AtkTable AtkTable;
Packit Service ef73c4
#endif
Packit Service ef73c4
typedef struct _AtkTableIface AtkTableIface;
Packit Service ef73c4
Packit Service ef73c4
struct _AtkTableIface
Packit Service ef73c4
{
Packit Service ef73c4
  GTypeInterface parent;
Packit Service ef73c4
Packit Service ef73c4
  AtkObject*        (* ref_at)                   (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gint              (* get_index_at)             (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gint              (* get_column_at_index)      (AtkTable      *table,
Packit Service ef73c4
                                                  gint          index_);
Packit Service ef73c4
  gint              (* get_row_at_index)         (AtkTable      *table,
Packit Service ef73c4
                                                  gint          index_);
Packit Service ef73c4
  gint              (* get_n_columns)           (AtkTable      *table);
Packit Service ef73c4
  gint              (* get_n_rows)               (AtkTable      *table);
Packit Service ef73c4
  gint              (* get_column_extent_at)     (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gint              (* get_row_extent_at)        (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  AtkObject*
Packit Service ef73c4
                    (* get_caption)              (AtkTable      *table);
Packit Service ef73c4
  const gchar*      (* get_column_description)   (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  AtkObject*        (* get_column_header)        (AtkTable      *table,
Packit Service ef73c4
						  gint		column);
Packit Service ef73c4
  const gchar*      (* get_row_description)      (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row);
Packit Service ef73c4
  AtkObject*        (* get_row_header)           (AtkTable      *table,
Packit Service ef73c4
						  gint		row);
Packit Service ef73c4
  AtkObject*        (* get_summary)              (AtkTable      *table);
Packit Service ef73c4
  void              (* set_caption)              (AtkTable      *table,
Packit Service ef73c4
                                                  AtkObject     *caption);
Packit Service ef73c4
  void              (* set_column_description)   (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column,
Packit Service ef73c4
                                                  const gchar   *description);
Packit Service ef73c4
  void              (* set_column_header)        (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column,
Packit Service ef73c4
                                                  AtkObject     *header);
Packit Service ef73c4
  void              (* set_row_description)      (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  const gchar   *description);
Packit Service ef73c4
  void              (* set_row_header)           (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  AtkObject     *header);
Packit Service ef73c4
  void              (* set_summary)              (AtkTable      *table,
Packit Service ef73c4
                                                  AtkObject     *accessible);
Packit Service ef73c4
  gint              (* get_selected_columns)     (AtkTable      *table,
Packit Service ef73c4
                                                  gint          **selected);
Packit Service ef73c4
  gint              (* get_selected_rows)        (AtkTable      *table,
Packit Service ef73c4
                                                  gint          **selected);
Packit Service ef73c4
  gboolean          (* is_column_selected)       (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gboolean          (* is_row_selected)          (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row);
Packit Service ef73c4
  gboolean          (* is_selected)              (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gboolean          (* add_row_selection)        (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row);
Packit Service ef73c4
  gboolean          (* remove_row_selection)     (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row);
Packit Service ef73c4
  gboolean          (* add_column_selection)     (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
  gboolean          (* remove_column_selection)  (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column);
Packit Service ef73c4
Packit Service ef73c4
  /*
Packit Service ef73c4
   * signal handlers
Packit Service ef73c4
   */
Packit Service ef73c4
  void              (* row_inserted)             (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          num_inserted);
Packit Service ef73c4
  void              (* column_inserted)          (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column,
Packit Service ef73c4
                                                  gint          num_inserted);
Packit Service ef73c4
  void              (* row_deleted)              (AtkTable      *table,
Packit Service ef73c4
                                                  gint          row,
Packit Service ef73c4
                                                  gint          num_deleted);
Packit Service ef73c4
  void              (* column_deleted)           (AtkTable      *table,
Packit Service ef73c4
                                                  gint          column,
Packit Service ef73c4
                                                  gint          num_deleted);
Packit Service ef73c4
  void              (* row_reordered)            (AtkTable      *table);
Packit Service ef73c4
  void              (* column_reordered)         (AtkTable      *table);
Packit Service ef73c4
  void              (* model_changed)            (AtkTable      *table);
Packit Service ef73c4
};
Packit Service ef73c4
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
GType atk_table_get_type (void);
Packit Service ef73c4
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
AtkObject*        atk_table_ref_at               (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_table_ref_at)
Packit Service ef73c4
gint              atk_table_get_index_at         (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12
Packit Service ef73c4
gint              atk_table_get_column_at_index  (AtkTable         *table,
Packit Service ef73c4
                                                  gint             index_);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12
Packit Service ef73c4
gint              atk_table_get_row_at_index     (AtkTable         *table,
Packit Service ef73c4
                                                  gint             index_);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_n_columns        (AtkTable         *table);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_n_rows           (AtkTable         *table);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_column_extent_at (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_row_extent_at    (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
AtkObject*
Packit Service ef73c4
                  atk_table_get_caption          (AtkTable         *table);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
const gchar*      atk_table_get_column_description
Packit Service ef73c4
                                                 (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
AtkObject*        atk_table_get_column_header    (AtkTable         *table,
Packit Service ef73c4
						  gint		   column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
const gchar*      atk_table_get_row_description  (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
AtkObject*        atk_table_get_row_header       (AtkTable         *table,
Packit Service ef73c4
						  gint		   row);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
AtkObject*        atk_table_get_summary          (AtkTable         *table);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_caption          (AtkTable         *table,
Packit Service ef73c4
                                                  AtkObject        *caption);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_column_description 
Packit Service ef73c4
                                                 (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column,
Packit Service ef73c4
                                                  const gchar      *description);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_column_header    (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column,
Packit Service ef73c4
                                                  AtkObject        *header);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_row_description  (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  const gchar      *description);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_row_header       (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  AtkObject        *header);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
void              atk_table_set_summary          (AtkTable         *table,
Packit Service ef73c4
                                                  AtkObject        *accessible);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_selected_columns (AtkTable         *table,
Packit Service ef73c4
                                                  gint             **selected);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gint              atk_table_get_selected_rows    (AtkTable         *table,
Packit Service ef73c4
                                                  gint             **selected);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_is_column_selected   (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_is_row_selected      (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_is_selected          (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_add_row_selection    (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_remove_row_selection (AtkTable         *table,
Packit Service ef73c4
                                                  gint             row);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_add_column_selection (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
gboolean          atk_table_remove_column_selection  
Packit Service ef73c4
                                                 (AtkTable         *table,
Packit Service ef73c4
                                                  gint             column);
Packit Service ef73c4
Packit Service ef73c4
G_END_DECLS
Packit Service ef73c4
Packit Service ef73c4
#endif /* __ATK_TABLE_H__ */