File indexing completed on 2025-03-13 08:35:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __ATK_SELECTION_H__
0021 #define __ATK_SELECTION_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
0029 G_BEGIN_DECLS
0030
0031
0032
0033
0034
0035
0036
0037
0038 #define ATK_TYPE_SELECTION (atk_selection_get_type ())
0039 #define ATK_IS_SELECTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_SELECTION)
0040 #define ATK_SELECTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_SELECTION, AtkSelection)
0041 #define ATK_SELECTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_SELECTION, AtkSelectionIface))
0042
0043 #ifndef _TYPEDEF_ATK_SELECTION_
0044 #define _TYPEDEF_ATK_SELECTION_
0045 typedef struct _AtkSelection AtkSelection;
0046 #endif
0047 typedef struct _AtkSelectionIface AtkSelectionIface;
0048
0049 struct _AtkSelectionIface
0050 {
0051 GTypeInterface parent;
0052
0053 gboolean (*add_selection) (AtkSelection *selection,
0054 gint i);
0055 gboolean (*clear_selection) (AtkSelection *selection);
0056 AtkObject *(*ref_selection) (AtkSelection *selection,
0057 gint i);
0058 gint (*get_selection_count) (AtkSelection *selection);
0059 gboolean (*is_child_selected) (AtkSelection *selection,
0060 gint i);
0061 gboolean (*remove_selection) (AtkSelection *selection,
0062 gint i);
0063 gboolean (*select_all_selection) (AtkSelection *selection);
0064
0065
0066
0067 void (*selection_changed) (AtkSelection *selection);
0068 };
0069
0070 ATK_AVAILABLE_IN_ALL
0071 GType atk_selection_get_type (void);
0072
0073 ATK_AVAILABLE_IN_ALL
0074 gboolean atk_selection_add_selection (AtkSelection *selection,
0075 gint i);
0076
0077 ATK_AVAILABLE_IN_ALL
0078 gboolean atk_selection_clear_selection (AtkSelection *selection);
0079
0080 ATK_AVAILABLE_IN_ALL
0081 AtkObject *atk_selection_ref_selection (AtkSelection *selection,
0082 gint i);
0083
0084 ATK_AVAILABLE_IN_ALL
0085 gint atk_selection_get_selection_count (AtkSelection *selection);
0086
0087 ATK_AVAILABLE_IN_ALL
0088 gboolean atk_selection_is_child_selected (AtkSelection *selection,
0089 gint i);
0090
0091 ATK_AVAILABLE_IN_ALL
0092 gboolean atk_selection_remove_selection (AtkSelection *selection,
0093 gint i);
0094
0095 ATK_AVAILABLE_IN_ALL
0096 gboolean atk_selection_select_all_selection (AtkSelection *selection);
0097
0098 G_END_DECLS
0099
0100 #endif