1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/atk-1.0/atk/atkstateset.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,81 @@ 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_STATE_SET_H__ 1.24 +#define __ATK_STATE_SET_H__ 1.25 + 1.26 +#ifdef __cplusplus 1.27 +extern "C" { 1.28 +#endif /* __cplusplus */ 1.29 + 1.30 +#include <glib-object.h> 1.31 +#include <atk/atkobject.h> 1.32 +#include <atk/atkstate.h> 1.33 + 1.34 +#define ATK_TYPE_STATE_SET (atk_state_set_get_type ()) 1.35 +#define ATK_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STATE_SET, AtkStateSet)) 1.36 +#define ATK_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_STATE_SET, AtkStateSetClass)) 1.37 +#define ATK_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STATE_SET)) 1.38 +#define ATK_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_STATE_SET)) 1.39 +#define ATK_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_STATE_SET, AtkStateSetClass)) 1.40 + 1.41 +typedef struct _AtkStateSetClass AtkStateSetClass; 1.42 + 1.43 + 1.44 +struct _AtkStateSet 1.45 +{ 1.46 + GObject parent; 1.47 + 1.48 +}; 1.49 + 1.50 +struct _AtkStateSetClass 1.51 +{ 1.52 + GObjectClass parent; 1.53 +}; 1.54 + 1.55 +GType atk_state_set_get_type (void); 1.56 + 1.57 +AtkStateSet* atk_state_set_new (void); 1.58 +gboolean atk_state_set_is_empty (AtkStateSet *set); 1.59 +gboolean atk_state_set_add_state (AtkStateSet *set, 1.60 + AtkStateType type); 1.61 +void atk_state_set_add_states (AtkStateSet *set, 1.62 + AtkStateType *types, 1.63 + gint n_types); 1.64 +void atk_state_set_clear_states (AtkStateSet *set); 1.65 +gboolean atk_state_set_contains_state (AtkStateSet *set, 1.66 + AtkStateType type); 1.67 +gboolean atk_state_set_contains_states (AtkStateSet *set, 1.68 + AtkStateType *types, 1.69 + gint n_types); 1.70 +gboolean atk_state_set_remove_state (AtkStateSet *set, 1.71 + AtkStateType type); 1.72 +AtkStateSet* atk_state_set_and_sets (AtkStateSet *set, 1.73 + AtkStateSet *compare_set); 1.74 +AtkStateSet* atk_state_set_or_sets (AtkStateSet *set, 1.75 + AtkStateSet *compare_set); 1.76 +AtkStateSet* atk_state_set_xor_sets (AtkStateSet *set, 1.77 + AtkStateSet *compare_set); 1.78 + 1.79 +#ifdef __cplusplus 1.80 +} 1.81 +#endif /* __cplusplus */ 1.82 + 1.83 + 1.84 +#endif /* __ATK_STATE_SET_H__ */