File indexing completed on 2025-01-18 09:28:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __ATK_STATE_SET_H__
0021 #define __ATK_STATE_SET_H__
0022
0023 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined(__ATK_H_INSIDE__) && !defined(ATK_COMPILATION)
0024 #error "Only <atk/atk.h> can be included directly."
0025 #endif
0026
0027 #include <atk/atkobject.h>
0028 #include <atk/atkstate.h>
0029 #include <glib-object.h>
0030
0031 G_BEGIN_DECLS
0032
0033 #define ATK_TYPE_STATE_SET (atk_state_set_get_type ())
0034 #define ATK_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STATE_SET, AtkStateSet))
0035 #define ATK_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_STATE_SET, AtkStateSetClass))
0036 #define ATK_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STATE_SET))
0037 #define ATK_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_STATE_SET))
0038 #define ATK_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_STATE_SET, AtkStateSetClass))
0039
0040 typedef struct _AtkStateSetClass AtkStateSetClass;
0041
0042 struct _AtkStateSet
0043 {
0044 GObject parent;
0045 };
0046
0047 struct _AtkStateSetClass
0048 {
0049 GObjectClass parent;
0050 };
0051
0052 ATK_AVAILABLE_IN_ALL
0053 GType atk_state_set_get_type (void);
0054
0055 ATK_AVAILABLE_IN_ALL
0056 AtkStateSet *atk_state_set_new (void);
0057 ATK_AVAILABLE_IN_ALL
0058 gboolean atk_state_set_is_empty (AtkStateSet *set);
0059 ATK_AVAILABLE_IN_ALL
0060 gboolean atk_state_set_add_state (AtkStateSet *set,
0061 AtkStateType type);
0062 ATK_AVAILABLE_IN_ALL
0063 void atk_state_set_add_states (AtkStateSet *set,
0064 AtkStateType *types,
0065 gint n_types);
0066 ATK_AVAILABLE_IN_ALL
0067 void atk_state_set_clear_states (AtkStateSet *set);
0068 ATK_AVAILABLE_IN_ALL
0069 gboolean atk_state_set_contains_state (AtkStateSet *set,
0070 AtkStateType type);
0071 ATK_AVAILABLE_IN_ALL
0072 gboolean atk_state_set_contains_states (AtkStateSet *set,
0073 AtkStateType *types,
0074 gint n_types);
0075 ATK_AVAILABLE_IN_ALL
0076 gboolean atk_state_set_remove_state (AtkStateSet *set,
0077 AtkStateType type);
0078 ATK_AVAILABLE_IN_ALL
0079 AtkStateSet *atk_state_set_and_sets (AtkStateSet *set,
0080 AtkStateSet *compare_set);
0081 ATK_AVAILABLE_IN_ALL
0082 AtkStateSet *atk_state_set_or_sets (AtkStateSet *set,
0083 AtkStateSet *compare_set);
0084 ATK_AVAILABLE_IN_ALL
0085 AtkStateSet *atk_state_set_xor_sets (AtkStateSet *set,
0086 AtkStateSet *compare_set);
0087
0088 G_END_DECLS
0089
0090 #endif