76 lines
2.8 KiB
C
76 lines
2.8 KiB
C
|
|
/*
|
||
|
|
* AT-SPI - Assistive Technology Service Provider Interface
|
||
|
|
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
|
||
|
|
*
|
||
|
|
* Copyright 2001, 2002 Sun Microsystems Inc.,
|
||
|
|
* Copyright 2001, 2002 Ximian, Inc.
|
||
|
|
* Copyright 2010, 2011 Novell, Inc.
|
||
|
|
*
|
||
|
|
* This library is free software; you can redistribute it and/or
|
||
|
|
* modify it under the terms of the GNU Library General Public
|
||
|
|
* License as published by the Free Software Foundation; either
|
||
|
|
* version 2 of the License, or (at your option) any later version.
|
||
|
|
*
|
||
|
|
* This library is distributed in the hope that it will be useful,
|
||
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
|
* Library General Public License for more details.
|
||
|
|
*
|
||
|
|
* You should have received a copy of the GNU Library General Public
|
||
|
|
* License along with this library; if not, write to the
|
||
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||
|
|
* Boston, MA 02111-1307, USA.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef _ATSPI_STATE_SET_H_
|
||
|
|
#define _ATSPI_STATE_SET_H_
|
||
|
|
|
||
|
|
#define ATSPI_TYPE_STATE_SET (atspi_state_set_get_type ())
|
||
|
|
#define ATSPI_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_STATE_SET, AtspiStateSet))
|
||
|
|
#define ATSPI_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_STATE_SET, AtspiStateSetClass))
|
||
|
|
#define ATSPI_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_STATE_SET))
|
||
|
|
#define ATSPI_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_STATE_SET))
|
||
|
|
#define ATSPI_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_STATE_SET, AtspiStateSetClass))
|
||
|
|
|
||
|
|
G_BEGIN_DECLS
|
||
|
|
|
||
|
|
typedef struct _AtspiStateSet AtspiStateSet;
|
||
|
|
struct _AtspiStateSet
|
||
|
|
{
|
||
|
|
GObject parent;
|
||
|
|
struct _AtspiAccessible *accessible;
|
||
|
|
gint64 states;
|
||
|
|
};
|
||
|
|
|
||
|
|
typedef struct _AtspiStateSetClass AtspiStateSetClass;
|
||
|
|
struct _AtspiStateSetClass
|
||
|
|
{
|
||
|
|
GObjectClass parent_class;
|
||
|
|
};
|
||
|
|
|
||
|
|
GType atspi_state_set_get_type (void);
|
||
|
|
|
||
|
|
AtspiStateSet * atspi_state_set_new (GArray *states);
|
||
|
|
|
||
|
|
void atspi_state_set_set_by_name (AtspiStateSet *set, const gchar *name, gboolean enabled);
|
||
|
|
|
||
|
|
void atspi_state_set_add (AtspiStateSet *set, AtspiStateType state);
|
||
|
|
|
||
|
|
AtspiStateSet * atspi_state_set_compare (AtspiStateSet *set, AtspiStateSet *set2);
|
||
|
|
|
||
|
|
gboolean atspi_state_set_contains (AtspiStateSet *set, AtspiStateType state);
|
||
|
|
|
||
|
|
gboolean atspi_state_set_equals (AtspiStateSet *set, AtspiStateSet *set2);
|
||
|
|
|
||
|
|
GArray * atspi_state_set_get_states (AtspiStateSet *set);
|
||
|
|
|
||
|
|
gboolean atspi_state_set_is_empty (AtspiStateSet *set);
|
||
|
|
|
||
|
|
void atspi_state_set_remove (AtspiStateSet *set, AtspiStateType state);
|
||
|
|
|
||
|
|
AtspiStateSet * _atspi_state_set_new_internal (struct _AtspiAccessible *accessible, gint64 states);
|
||
|
|
|
||
|
|
G_END_DECLS
|
||
|
|
|
||
|
|
#endif /* _ATSPI_STATE_SET_H_ */
|