other-licenses/atk-1.0/atk/atkeditabletext.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/atk-1.0/atk/atkeditabletext.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,105 @@
     1.4 +/* ATK -  Accessibility Toolkit
     1.5 + * Copyright 2001 Sun Microsystems Inc.
     1.6 + *
     1.7 + * This library is free software; you can redistribute it and/or
     1.8 + * modify it under the terms of the GNU Library General Public
     1.9 + * License as published by the Free Software Foundation; either
    1.10 + * version 2 of the License, or (at your option) any later version.
    1.11 + *
    1.12 + * This library is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.15 + * Library General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU Library General Public
    1.18 + * License along with this library; if not, write to the
    1.19 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.20 + * Boston, MA 02111-1307, USA.
    1.21 + */
    1.22 +
    1.23 +#ifndef __ATK_EDITABLE_TEXT_H__
    1.24 +#define __ATK_EDITABLE_TEXT_H__
    1.25 +
    1.26 +#include <atk/atkobject.h>
    1.27 +#include <atk/atktext.h>
    1.28 +
    1.29 +#ifdef __cplusplus
    1.30 +extern "C" {
    1.31 +#endif /* __cplusplus */
    1.32 +
    1.33 +/*
    1.34 + * AtkEditableText is used to support access in an "accessibility" context
    1.35 + * to editing features of editable text widgets.
    1.36 + */
    1.37 +
    1.38 +#define ATK_TYPE_EDITABLE_TEXT                    (atk_editable_text_get_type ())
    1.39 +#define ATK_IS_EDITABLE_TEXT(obj)                 G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_EDITABLE_TEXT)
    1.40 +#define ATK_EDITABLE_TEXT(obj)                    G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableText)
    1.41 +#define ATK_EDITABLE_TEXT_GET_IFACE(obj)          (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableTextIface))
    1.42 +
    1.43 +#ifndef _TYPEDEF_ATK_EDITABLE_TEXT_
    1.44 +#define _TYPEDEF_ATK_EDITABLE_TEXT_
    1.45 +typedef struct _AtkEditableText AtkEditableText;
    1.46 +#endif
    1.47 +typedef struct _AtkEditableTextIface AtkEditableTextIface;
    1.48 +
    1.49 +struct _AtkEditableTextIface
    1.50 +{
    1.51 +  GTypeInterface parent_interface;
    1.52 +
    1.53 +  gboolean (* set_run_attributes) (AtkEditableText  *text,
    1.54 +                                   AtkAttributeSet  *attrib_set,
    1.55 +                                   gint		    start_offset,
    1.56 + 				   gint		    end_offset);
    1.57 +  void   (* set_text_contents)    (AtkEditableText  *text,
    1.58 +                                   const gchar      *string);
    1.59 +  void   (* insert_text)          (AtkEditableText  *text,
    1.60 +                                   const gchar      *string,
    1.61 +                                   gint             length,
    1.62 +                                   gint             *position);
    1.63 +  void   (* copy_text)            (AtkEditableText  *text,
    1.64 +                                   gint             start_pos,
    1.65 +                                   gint             end_pos);
    1.66 +  void   (* cut_text)             (AtkEditableText  *text,
    1.67 +                                   gint             start_pos,
    1.68 +                                   gint             end_pos);
    1.69 +  void   (* delete_text)          (AtkEditableText  *text,
    1.70 +                                   gint             start_pos,
    1.71 +                                   gint             end_pos);
    1.72 +  void   (* paste_text)           (AtkEditableText  *text,
    1.73 +                                   gint             position);
    1.74 +
    1.75 +  AtkFunction                     pad1;
    1.76 +  AtkFunction                     pad2;
    1.77 +};
    1.78 +GType atk_editable_text_get_type (void);
    1.79 +
    1.80 +
    1.81 +gboolean atk_editable_text_set_run_attributes (AtkEditableText          *text,
    1.82 +                                               AtkAttributeSet  *attrib_set,
    1.83 +                                               gint    	        start_offset,
    1.84 + 					       gint	        end_offset);
    1.85 +void atk_editable_text_set_text_contents    (AtkEditableText  *text,
    1.86 +                                             const gchar      *string);
    1.87 +void atk_editable_text_insert_text          (AtkEditableText  *text,
    1.88 +                                             const gchar      *string,
    1.89 +                                             gint             length,
    1.90 +                                             gint             *position);
    1.91 +void atk_editable_text_copy_text            (AtkEditableText  *text,
    1.92 +                                             gint             start_pos,
    1.93 +                                             gint             end_pos);
    1.94 +void atk_editable_text_cut_text             (AtkEditableText  *text,
    1.95 +                                             gint             start_pos,
    1.96 +                                             gint             end_pos);
    1.97 +void atk_editable_text_delete_text          (AtkEditableText  *text,
    1.98 +                                             gint             start_pos,
    1.99 +                                             gint             end_pos);
   1.100 +void atk_editable_text_paste_text           (AtkEditableText  *text,
   1.101 +                                             gint             position);
   1.102 + 
   1.103 +#ifdef __cplusplus
   1.104 +}
   1.105 +#endif /* __cplusplus */
   1.106 +
   1.107 +
   1.108 +#endif /* __ATK_EDITABLE_TEXT_H__ */

mercurial