1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/atk-1.0/atk/atkvalue.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,95 @@ 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_VALUE_H__ 1.24 +#define __ATK_VALUE_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 AtkValue interface should be supported by any object that 1.34 + * supports a numerical value (e.g., a scroll bar). This interface 1.35 + * provides the standard mechanism for an assistive technology to 1.36 + * determine and set the numerical value as well as get the minimum 1.37 + * and maximum values. 1.38 + */ 1.39 + 1.40 +#define ATK_TYPE_VALUE (atk_value_get_type ()) 1.41 +#define ATK_IS_VALUE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_VALUE) 1.42 +#define ATK_VALUE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_VALUE, AtkValue) 1.43 +#define ATK_VALUE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_VALUE, AtkValueIface)) 1.44 + 1.45 +#ifndef _TYPEDEF_ATK_VALUE_ 1.46 +#define _TYPEDEF_ATK_VALUE__ 1.47 +typedef struct _AtkValue AtkValue; 1.48 +#endif 1.49 +typedef struct _AtkValueIface AtkValueIface; 1.50 + 1.51 +struct _AtkValueIface 1.52 +{ 1.53 + GTypeInterface parent; 1.54 + 1.55 + void (* get_current_value) (AtkValue *obj, 1.56 + GValue *value); 1.57 + void (* get_maximum_value) (AtkValue *obj, 1.58 + GValue *value); 1.59 + void (* get_minimum_value) (AtkValue *obj, 1.60 + GValue *value); 1.61 + gboolean (* set_current_value) (AtkValue *obj, 1.62 + const GValue *value); 1.63 + void (* get_minimum_increment) (AtkValue *obj, 1.64 + GValue *value); 1.65 + AtkFunction pad1; 1.66 +}; 1.67 + 1.68 +GType atk_value_get_type (void); 1.69 + 1.70 +void atk_value_get_current_value (AtkValue *obj, 1.71 + GValue *value); 1.72 + 1.73 + 1.74 +void atk_value_get_maximum_value (AtkValue *obj, 1.75 + GValue *value); 1.76 + 1.77 +void atk_value_get_minimum_value (AtkValue *obj, 1.78 + GValue *value); 1.79 + 1.80 +gboolean atk_value_set_current_value (AtkValue *obj, 1.81 + const GValue *value); 1.82 + 1.83 +void atk_value_get_minimum_increment (AtkValue *obj, 1.84 + GValue *value); 1.85 + 1.86 +/* 1.87 + * Additional GObject properties exported by GaccessibleValue: 1.88 + * "accessible_value" 1.89 + * (the accessible value has changed) 1.90 + */ 1.91 + 1.92 + 1.93 +#ifdef __cplusplus 1.94 +} 1.95 +#endif /* __cplusplus */ 1.96 + 1.97 + 1.98 +#endif /* __ATK_VALUE_H__ */