X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atspi%2Fatspi-stateset.h;h=f6fd32f079528b25042d8091930add987e1d6f83;hb=870691c1c55fe128f85ce7395ff9198ba93b2cdc;hp=6b674e428f434dbfe6cbdfd900931fd4213042d4;hpb=a5a11bda4217947060717e16cfc1764919d0582b;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/atspi/atspi-stateset.h b/atspi/atspi-stateset.h index 6b674e4..f6fd32f 100644 --- a/atspi/atspi-stateset.h +++ b/atspi/atspi-stateset.h @@ -1,3 +1,27 @@ +/* + * 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_ @@ -8,6 +32,8 @@ #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 { @@ -24,8 +50,26 @@ struct _AtspiStateSetClass GType atspi_state_set_get_type (void); -AtspiStateSet * -atspi_state_set_new (struct _AtspiAccessible *accessible, gint64 states); +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_ */