Blame atk/atkvalue.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_VALUE_H__
Packit Service ef73c4
#define __ATK_VALUE_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
#include <atk/atkrange.h>
Packit Service ef73c4
Packit Service ef73c4
G_BEGIN_DECLS
Packit Service ef73c4
Packit Service ef73c4
#define ATK_TYPE_VALUE                    (atk_value_get_type ())
Packit Service ef73c4
#define ATK_IS_VALUE(obj)                 G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_VALUE)
Packit Service ef73c4
#define ATK_VALUE(obj)                    G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_VALUE, AtkValue)
Packit Service ef73c4
#define ATK_VALUE_GET_IFACE(obj)          (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_VALUE, AtkValueIface))
Packit Service ef73c4
Packit Service ef73c4
#ifndef _TYPEDEF_ATK_VALUE_
Packit Service ef73c4
#define _TYPEDEF_ATK_VALUE__
Packit Service ef73c4
typedef struct _AtkValue AtkValue;
Packit Service ef73c4
#endif
Packit Service ef73c4
typedef struct _AtkValueIface AtkValueIface;
Packit Service ef73c4
Packit Service ef73c4
/**
Packit Service ef73c4
 * AtkValueType:
Packit Service ef73c4
 *
Packit Service ef73c4
 * Default types for a given value. Those are defined in order to
Packit Service ef73c4
 * easily get localized strings to describe a given value or a given
Packit Service ef73c4
 * subrange, using atk_value_type_get_localized_name().
Packit Service ef73c4
 *
Packit Service ef73c4
 */
Packit Service ef73c4
typedef enum
Packit Service ef73c4
{
Packit Service ef73c4
  ATK_VALUE_VERY_WEAK,
Packit Service ef73c4
  ATK_VALUE_WEAK,
Packit Service ef73c4
  ATK_VALUE_ACCEPTABLE,
Packit Service ef73c4
  ATK_VALUE_STRONG,
Packit Service ef73c4
  ATK_VALUE_VERY_STRONG,
Packit Service ef73c4
  ATK_VALUE_VERY_LOW,
Packit Service ef73c4
  ATK_VALUE_LOW,
Packit Service ef73c4
  ATK_VALUE_MEDIUM,
Packit Service ef73c4
  ATK_VALUE_HIGH,
Packit Service ef73c4
  ATK_VALUE_VERY_HIGH,
Packit Service ef73c4
  ATK_VALUE_VERY_BAD,
Packit Service ef73c4
  ATK_VALUE_BAD,
Packit Service ef73c4
  ATK_VALUE_GOOD,
Packit Service ef73c4
  ATK_VALUE_VERY_GOOD,
Packit Service ef73c4
  ATK_VALUE_BEST,
Packit Service ef73c4
  ATK_VALUE_LAST_DEFINED
Packit Service ef73c4
}AtkValueType;
Packit Service ef73c4
Packit Service ef73c4
/**
Packit Service ef73c4
 * AtkValueIface:
Packit Service ef73c4
 * @get_current_value: This virtual function is deprecated since 2.12
Packit Service ef73c4
 *  and it should not be overriden.
Packit Service ef73c4
 * @get_maximum_value: This virtual function is deprecated since 2.12
Packit Service ef73c4
 *  and it should not be overriden.
Packit Service ef73c4
 * @get_minimum_value: This virtual function is deprecated since 2.12
Packit Service ef73c4
 *  and it should not be overriden.
Packit Service ef73c4
 * @set_current_value: This virtual function is deprecated since 2.12
Packit Service ef73c4
 *  and it should not be overriden.
Packit Service ef73c4
 * @get_minimum_increment: This virtual function is deprecated since
Packit Service ef73c4
 *  2.12 and it should not be overriden.
Packit Service ef73c4
 * @get_value_and_text: gets the current value and the human readable
Packit Service ef73c4
 * text alternative (if available) of this object. Since 2.12.
Packit Service ef73c4
 * @get_range: gets the range that defines the minimum and maximum
Packit Service ef73c4
 *  value of this object. Returns NULL if there is no range
Packit Service ef73c4
 *  defined. Since 2.12.
Packit Service ef73c4
 * @get_increment: gets the minimum increment by which the value of
Packit Service ef73c4
 *  this object may be changed. If zero it is undefined. Since 2.12.
Packit Service ef73c4
 * @get_sub_ranges: returns a list of different subranges, and their
Packit Service ef73c4
 *  description (if available) of this object. Returns NULL if there
Packit Service ef73c4
 *  is not subranges defined. Since 2.12.
Packit Service ef73c4
 * @set_value: sets the value of this object. Since 2.12.
Packit Service ef73c4
 */
Packit Service ef73c4
struct _AtkValueIface
Packit Service ef73c4
{
Packit Service ef73c4
  GTypeInterface parent;
Packit Service ef73c4
Packit Service ef73c4
  /*<deprecated>*/
Packit Service ef73c4
  void     (* get_current_value) (AtkValue     *obj,
Packit Service ef73c4
                                  GValue       *value);
Packit Service ef73c4
  void     (* get_maximum_value) (AtkValue     *obj,
Packit Service ef73c4
                                  GValue       *value);
Packit Service ef73c4
  void     (* get_minimum_value) (AtkValue     *obj,
Packit Service ef73c4
                                  GValue       *value);
Packit Service ef73c4
  gboolean (* set_current_value) (AtkValue     *obj,
Packit Service ef73c4
                                  const GValue *value);
Packit Service ef73c4
  void     (* get_minimum_increment) (AtkValue   *obj,
Packit Service ef73c4
				      GValue     *value);
Packit Service ef73c4
  /*</deprecated>*/
Packit Service ef73c4
  void     (* get_value_and_text) (AtkValue *obj,
Packit Service ef73c4
                                   gdouble *value,
Packit Service ef73c4
                                   gchar  **text);
Packit Service ef73c4
  AtkRange*(* get_range)          (AtkValue *obj);
Packit Service ef73c4
  gdouble  (* get_increment)      (AtkValue *obj);
Packit Service ef73c4
  GSList*  (* get_sub_ranges)     (AtkValue *obj);
Packit Service ef73c4
  void     (* set_value)          (AtkValue     *obj,
Packit Service ef73c4
                                   const gdouble new_value);
Packit Service ef73c4
Packit Service ef73c4
};
Packit Service ef73c4
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
GType            atk_value_get_type (void);
Packit Service ef73c4
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_value_and_text)
Packit Service ef73c4
void      atk_value_get_current_value (AtkValue     *obj,
Packit Service ef73c4
                                       GValue       *value);
Packit Service ef73c4
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_range)
Packit Service ef73c4
void     atk_value_get_maximum_value  (AtkValue     *obj,
Packit Service ef73c4
                                       GValue       *value);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_range)
Packit Service ef73c4
void     atk_value_get_minimum_value  (AtkValue     *obj,
Packit Service ef73c4
                                       GValue       *value);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_value_set_value)
Packit Service ef73c4
gboolean atk_value_set_current_value  (AtkValue     *obj,
Packit Service ef73c4
                                       const GValue *value);
Packit Service ef73c4
ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_increment)
Packit Service ef73c4
void     atk_value_get_minimum_increment  (AtkValue     *obj,
Packit Service ef73c4
					   GValue       *value);
Packit Service ef73c4
Packit Service ef73c4
ATK_AVAILABLE_IN_2_12
Packit Service ef73c4
void      atk_value_get_value_and_text (AtkValue *obj,
Packit Service ef73c4
                                        gdouble *value,
Packit Service ef73c4
                                        gchar  **text);
Packit Service ef73c4
ATK_AVAILABLE_IN_2_12
Packit Service ef73c4
AtkRange* atk_value_get_range          (AtkValue *obj);
Packit Service ef73c4
ATK_AVAILABLE_IN_2_12
Packit Service ef73c4
gdouble   atk_value_get_increment      (AtkValue *obj);
Packit Service ef73c4
ATK_AVAILABLE_IN_2_12
Packit Service ef73c4
GSList*   atk_value_get_sub_ranges     (AtkValue *obj);
Packit Service ef73c4
ATK_AVAILABLE_IN_2_12
Packit Service ef73c4
void      atk_value_set_value          (AtkValue     *obj,
Packit Service ef73c4
                                        const gdouble new_value);
Packit Service ef73c4
/* AtkValueType methods */
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
const gchar* atk_value_type_get_name           (AtkValueType value_type);
Packit Service ef73c4
ATK_AVAILABLE_IN_ALL
Packit Service ef73c4
const gchar* atk_value_type_get_localized_name (AtkValueType value_type);
Packit Service ef73c4
Packit Service ef73c4
G_END_DECLS
Packit Service ef73c4
Packit Service ef73c4
#endif /* __ATK_VALUE_H__ */