Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 08:35:40

0001 /*
0002  * AT-SPI - Assistive Technology Service Provider Interface
0003  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
0004  *
0005  * Copyright 2001, 2002 Sun Microsystems Inc.,
0006  * Copyright 2001, 2002 Ximian, Inc.
0007  * Copyright 2010, 2011 Novell, Inc.
0008  *
0009  * This library is free software; you can redistribute it and/or
0010  * modify it under the terms of the GNU Lesser General Public
0011  * License as published by the Free Software Foundation; either
0012  * version 2.1 of the License, or (at your option) any later version.
0013  *
0014  * This library is distributed in the hope that it will be useful,
0015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0017  * Lesser General Public License for more details.
0018  *
0019  * You should have received a copy of the GNU Lesser General Public
0020  * License along with this library; if not, write to the
0021  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0022  * Boston, MA 02110-1301, USA.
0023  */
0024 
0025 #ifndef _ATSPI_STATE_SET_H_
0026 #define _ATSPI_STATE_SET_H_
0027 
0028 #define ATSPI_TYPE_STATE_SET (atspi_state_set_get_type ())
0029 #define ATSPI_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_STATE_SET, AtspiStateSet))
0030 #define ATSPI_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATSPI_TYPE_STATE_SET, AtspiStateSetClass))
0031 #define ATSPI_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_STATE_SET))
0032 #define ATSPI_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATSPI_TYPE_STATE_SET))
0033 #define ATSPI_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATSPI_TYPE_STATE_SET, AtspiStateSetClass))
0034 
0035 G_BEGIN_DECLS
0036 
0037 typedef struct _AtspiStateSet AtspiStateSet;
0038 struct _AtspiStateSet
0039 {
0040   GObject parent;
0041   struct _AtspiAccessible *accessible;
0042   gint64 states;
0043 };
0044 
0045 typedef struct _AtspiStateSetClass AtspiStateSetClass;
0046 struct _AtspiStateSetClass
0047 {
0048   GObjectClass parent_class;
0049 };
0050 
0051 GType atspi_state_set_get_type (void);
0052 
0053 AtspiStateSet *atspi_state_set_new (GArray *states);
0054 
0055 void atspi_state_set_set_by_name (AtspiStateSet *set, const gchar *name, gboolean enabled);
0056 
0057 void atspi_state_set_add (AtspiStateSet *set, AtspiStateType state);
0058 
0059 AtspiStateSet *atspi_state_set_compare (AtspiStateSet *set, AtspiStateSet *set2);
0060 
0061 gboolean atspi_state_set_contains (AtspiStateSet *set, AtspiStateType state);
0062 
0063 gboolean atspi_state_set_equals (AtspiStateSet *set, AtspiStateSet *set2);
0064 
0065 GArray *atspi_state_set_get_states (AtspiStateSet *set);
0066 
0067 gboolean atspi_state_set_is_empty (AtspiStateSet *set);
0068 
0069 void atspi_state_set_remove (AtspiStateSet *set, AtspiStateType state);
0070 
0071 AtspiStateSet *_atspi_state_set_new_internal (struct _AtspiAccessible *accessible, gint64 states);
0072 
0073 G_END_DECLS
0074 
0075 #endif /* _ATSPI_STATE_SET_H_ */