other-licenses/atk-1.0/atk/atkaction.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/atkaction.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,112 @@
     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_ACTION_H__
    1.24 +#define __ATK_ACTION_H__
    1.25 +
    1.26 +#include <atk/atkobject.h>
    1.27 +
    1.28 +#ifdef __cplusplus
    1.29 +extern "C" {
    1.30 +#endif /* __cplusplus */
    1.31 +
    1.32 +/*
    1.33 + * The interface AtkAction should be supported by any object that can 
    1.34 + * perform one or more actions. The interface provides the standard 
    1.35 + * mechanism for an assistive technology to determine what those actions 
    1.36 + * are as well as tell the object to perform them. Any object that can 
    1.37 + * be manipulated should support this interface.
    1.38 + */
    1.39 +
    1.40 +
    1.41 +#define ATK_TYPE_ACTION                    (atk_action_get_type ())
    1.42 +#define ATK_IS_ACTION(obj)                 G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_ACTION)
    1.43 +#define ATK_ACTION(obj)                    G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_ACTION, AtkAction)
    1.44 +#define ATK_ACTION_GET_IFACE(obj)          (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_ACTION, AtkActionIface))
    1.45 +
    1.46 +#ifndef _TYPEDEF_ATK_ACTION_
    1.47 +#define _TYPEDEF_ATK_ACTION_
    1.48 +typedef struct _AtkAction AtkAction;
    1.49 +#endif
    1.50 +typedef struct _AtkActionIface AtkActionIface;
    1.51 +
    1.52 +struct _AtkActionIface
    1.53 +{
    1.54 +  GTypeInterface parent;
    1.55 +
    1.56 +  gboolean                (*do_action)         (AtkAction         *action,
    1.57 +                                                gint              i);
    1.58 +  gint                    (*get_n_actions)     (AtkAction         *action);
    1.59 +  G_CONST_RETURN gchar*   (*get_description)   (AtkAction         *action,
    1.60 +                                                gint              i);
    1.61 +  G_CONST_RETURN gchar*   (*get_name)          (AtkAction         *action,
    1.62 +                                                gint              i);
    1.63 +  G_CONST_RETURN gchar*   (*get_keybinding)    (AtkAction         *action,
    1.64 +                                                gint              i);
    1.65 +  gboolean                (*set_description)   (AtkAction         *action,
    1.66 +                                                gint              i,
    1.67 +                                                const gchar       *desc);
    1.68 +  G_CONST_RETURN gchar*   (*get_localized_name)(AtkAction         *action,
    1.69 +						gint              i);
    1.70 +  AtkFunction             pad2;
    1.71 +};
    1.72 +
    1.73 +GType atk_action_get_type (void);
    1.74 +
    1.75 +/*
    1.76 + * These are the function which would be called by an application with
    1.77 + * the argument being a AtkObject object cast to (AtkAction).
    1.78 + *
    1.79 + * The function will just check that * the corresponding
    1.80 + * function pointer is not NULL and will call it.
    1.81 + *
    1.82 + * The "real" implementation of the function for accessible will be
    1.83 + * provided in a support library
    1.84 + */
    1.85 +
    1.86 +gboolean   atk_action_do_action                (AtkAction         *action,
    1.87 +                                            gint              i);
    1.88 +gint   atk_action_get_n_actions            (AtkAction *action);
    1.89 +G_CONST_RETURN gchar* atk_action_get_description  (AtkAction         *action,
    1.90 +                                                   gint              i);
    1.91 +G_CONST_RETURN gchar* atk_action_get_name         (AtkAction         *action,
    1.92 +                                                   gint              i);
    1.93 +G_CONST_RETURN gchar* atk_action_get_keybinding   (AtkAction         *action,
    1.94 +                                                   gint              i);
    1.95 +gboolean              atk_action_set_description  (AtkAction         *action,
    1.96 +                                                   gint              i,
    1.97 +                                                   const gchar       *desc);
    1.98 +
    1.99 +/* NEW in ATK 1.1: */
   1.100 +
   1.101 +G_CONST_RETURN gchar* atk_action_get_localized_name (AtkAction       *action,
   1.102 +						     gint            i);
   1.103 +
   1.104 +/*
   1.105 + * Additional GObject properties exported by AtkAction:
   1.106 + *    "accessible_action"
   1.107 + *       (an accessible action, or the list of actions, has changed)
   1.108 + */
   1.109 +
   1.110 +#ifdef __cplusplus
   1.111 +}
   1.112 +#endif /* __cplusplus */
   1.113 +
   1.114 +
   1.115 +#endif /* __ATK_ACTION_H__ */

mercurial