| 1 | /* gtkaccessible.h: Accessible interface |
| 2 | * |
| 3 | * Copyright 2020 GNOME Foundation |
| 4 | * |
| 5 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #pragma once |
| 22 | |
| 23 | #if !defined (__GTK_H_INSIDE__cxx . . $ `gtk/gtk.h:27:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!) |
| 24 | #error "Only <gtk/gtk.h> can be included directly." |
| 25 | #endif |
| 26 | |
| 27 | #include <glib-object.h> |
| 28 | #include <gtk/gtktypes.h>cxx . . $ `<file>/gtk/gtktypes.h`/ |
| 29 | #include <gtk/gtkenums.h>cxx . . $ `<file>/gtk/gtkenums.h`/ |
| 30 | |
| 31 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 32 | |
| 33 | #define GTK_TYPE_ACCESSIBLEcxx . . $ `gtk/gtkaccessible.h:33:9`! (gtk_accessible_get_type()) |
| 34 | |
| 35 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 36 | G_DECLARE_INTERFACEcxx . . $ gpointer# (GtkAccessible, gtk_accessible, GTK, ACCESSIBLE, GObject) |
| 37 | |
| 38 | /** |
| 39 | * GtkAccessiblePlatformState: |
| 40 | * @GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE: whether the accessible can be focused |
| 41 | * @GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED: whether the accessible has focus |
| 42 | * @GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE: whether the accessible is active |
| 43 | * |
| 44 | * The various platform states which can be queried |
| 45 | * using [[email protected]_platform_state]. |
| 46 | * |
| 47 | * Since: 4.10 |
| 48 | */ |
| 49 | typedef enumcxx . . $ $anonymous_type_43e098d4b742ca6f_0# { |
| 50 | GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLEcxx . . $ GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE., |
| 51 | GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSEDcxx . . $ GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED., |
| 52 | GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVEcxx . . $ GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE. |
| 53 | } GtkAccessiblePlatformStatecxx . . $ GtkAccessiblePlatformState#; |
| 54 | |
| 55 | /** |
| 56 | * GtkAccessibleInterface: |
| 57 | * @get_at_context: retrieve the platform-specific accessibility context |
| 58 | * for the accessible implementation |
| 59 | * @get_platform_state: retrieve the accessible state |
| 60 | * |
| 61 | * The common interface for accessible objects. |
| 62 | * |
| 63 | * Since: 4.10 |
| 64 | */ |
| 65 | struct _GtkAccessibleInterfacecxx . . $ _GtkAccessibleInterface# |
| 66 | { |
| 67 | GTypeInterfacecxx . . $ GTypeInterface# g_ifacecxx . . $ _GtkAccessibleInterface#g_iface.; |
| 68 | |
| 69 | /** |
| 70 | * GtkAccessibleInterface::get_at_context: |
| 71 | * @self: an accessible object |
| 72 | * |
| 73 | * Retrieves the platform-specific accessibility context for the |
| 74 | * accessible implementation. |
| 75 | * |
| 76 | * Returns: (transfer full) (nullable): the accessibility context |
| 77 | * |
| 78 | * Since: 4.10 |
| 79 | */ |
| 80 | GtkATContextcxx . . $ GtkATContext# * (* get_at_contextcxx . . $ _GtkAccessibleInterface#get_at_context.) (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 81 | |
| 82 | /** |
| 83 | * GtkAccessibleInterface::get_platform_state: |
| 84 | * @self: an accessible object |
| 85 | * @state: the state to query |
| 86 | * |
| 87 | * Checks if the given @state applies to the accessible object. |
| 88 | * |
| 89 | * Returns: true if the @state is set, and false otherwise |
| 90 | * |
| 91 | * Since: 4.10 |
| 92 | */ |
| 93 | gbooleancxx . . $ gboolean# (* get_platform_statecxx . . $ _GtkAccessibleInterface#get_platform_state.) (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 94 | GtkAccessiblePlatformStatecxx . . $ GtkAccessiblePlatformState# state); |
| 95 | |
| 96 | /** |
| 97 | * GtkAccessibleInterface::get_accessible_parent: |
| 98 | * @self: an accessible object |
| 99 | * |
| 100 | * Retrieves the accessible parent of an accessible object. |
| 101 | * |
| 102 | * This virtual function should return `NULL` for top level objects. |
| 103 | * |
| 104 | * Returns: (nullable) (transfer full): the accessible parent |
| 105 | * |
| 106 | * Since: 4.10 |
| 107 | */ |
| 108 | GtkAccessiblecxx . . $ GtkAccessible# * (* get_accessible_parentcxx . . $ _GtkAccessibleInterface#get_accessible_parent.) (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 109 | |
| 110 | /** |
| 111 | * GtkaccessibleInterface::get_first_accessible_child: |
| 112 | * @self: an accessible object |
| 113 | * |
| 114 | * Retrieves the first accessible child of an accessible object. |
| 115 | * |
| 116 | * Returns: (transfer full) (nullable): an accessible object |
| 117 | * |
| 118 | * Since: 4.10 |
| 119 | */ |
| 120 | GtkAccessiblecxx . . $ GtkAccessible# * (* get_first_accessible_childcxx . . $ _GtkAccessibleInterface#get_first_accessible_child.) (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 121 | |
| 122 | /** |
| 123 | * GtkaccessibleInterface::get_next_accessible_sibling: |
| 124 | * @self: an accessible object |
| 125 | * |
| 126 | * Retrieves the next accessible sibling of an accessible object. |
| 127 | * |
| 128 | * Returns: (transfer full) (nullable): an accessible object |
| 129 | * |
| 130 | * Since: 4.10 |
| 131 | */ |
| 132 | GtkAccessiblecxx . . $ GtkAccessible# * (* get_next_accessible_siblingcxx . . $ _GtkAccessibleInterface#get_next_accessible_sibling.) (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 133 | |
| 134 | /** |
| 135 | * GtkAccessibleInterface::get_bounds: |
| 136 | * @self: an accessible object |
| 137 | * @x: (out): the horizontal coordinate of a rectangle |
| 138 | * @y: (out): the vertical coordinate of a rectangle |
| 139 | * @width: (out): the width of a rectangle |
| 140 | * @height: (out): the height of a rectangle |
| 141 | * |
| 142 | * Retrieves the dimensions and position of an accessible object in its |
| 143 | * parent's coordinate space, if those values can be determined. |
| 144 | * |
| 145 | * For top level accessible objects, the X and Y coordinates are always |
| 146 | * going to be set to zero. |
| 147 | * |
| 148 | * Returns: true if the values are value, and false otherwise |
| 149 | */ |
| 150 | gbooleancxx . . $ gboolean# (* get_boundscxx . . $ _GtkAccessibleInterface#get_bounds.) (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 151 | int *x, |
| 152 | int *y, |
| 153 | int *width, |
| 154 | int *height); |
| 155 | |
| 156 | /** |
| 157 | * GtkAccessibleIface::get_accessible_id: |
| 158 | * @self: an accessible object |
| 159 | * |
| 160 | * Retrieves the accessible identifier for the accessible object. |
| 161 | * |
| 162 | * Returns: (transfer full) (nullable): the accessible identifier |
| 163 | * |
| 164 | * Since: 4.22 |
| 165 | */ |
| 166 | char * (* get_accessible_idcxx . . $ _GtkAccessibleInterface#get_accessible_id.) (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 167 | }; |
| 168 | |
| 169 | /** |
| 170 | * GtkAccessibleList: |
| 171 | * |
| 172 | * Wraps a list of references to [[email protected]] objects. |
| 173 | * |
| 174 | * Since: 4.14 |
| 175 | */ |
| 176 | typedef struct _GtkAccessibleListcxx . . $ _GtkAccessibleList# GtkAccessibleListcxx . . $ GtkAccessibleList#; |
| 177 | |
| 178 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 179 | GtkATContextcxx . . $ GtkATContext# * gtk_accessible_get_at_contextcxx . . $ gtk_accessible_get_at_context(29f561a2719a2234). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 180 | |
| 181 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 182 | gbooleancxx . . $ gboolean# gtk_accessible_get_platform_statecxx . . $ gtk_accessible_get_platform_state(1d0a012934a9ffb9). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 183 | GtkAccessiblePlatformStatecxx . . $ GtkAccessiblePlatformState# state); |
| 184 | |
| 185 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 186 | GtkAccessiblecxx . . $ GtkAccessible# * gtk_accessible_get_accessible_parentcxx . . $ gtk_accessible_get_accessible_parent(ef1fb94f5b667752). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 187 | |
| 188 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 189 | void gtk_accessible_set_accessible_parentcxx . . $ gtk_accessible_set_accessible_parent(7907974e87fb079f). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 190 | GtkAccessiblecxx . . $ GtkAccessible# *parent, |
| 191 | GtkAccessiblecxx . . $ GtkAccessible# *next_sibling); |
| 192 | |
| 193 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 194 | GtkAccessiblecxx . . $ GtkAccessible# * gtk_accessible_get_first_accessible_childcxx . . $ gtk_accessible_get_first_accessible_child(ef1fb94f5b667752). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 195 | |
| 196 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 197 | GtkAccessiblecxx . . $ GtkAccessible# * gtk_accessible_get_next_accessible_siblingcxx . . $ gtk_accessible_get_next_accessible_sibling(ef1fb94f5b667752). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 198 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 199 | void gtk_accessible_update_next_accessible_siblingcxx . . $ gtk_accessible_update_next_accessible_sibling(5c2c557aca0046cb). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 200 | GtkAccessiblecxx . . $ GtkAccessible# *new_sibling); |
| 201 | |
| 202 | |
| 203 | GDK_AVAILABLE_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:233:9`! |
| 204 | gbooleancxx . . $ gboolean# gtk_accessible_get_boundscxx . . $ gtk_accessible_get_bounds(41e59f2c5c4f6e45). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 205 | int *x, |
| 206 | int *y, |
| 207 | int *width, |
| 208 | int *height); |
| 209 | |
| 210 | GDK_AVAILABLE_IN_4_22cxx . . $ `build/gdk/version/gdk-visibility.h:437:9`! |
| 211 | char * gtk_accessible_get_accessible_idcxx . . $ gtk_accessible_get_accessible_id(d7b20fa1071415d9). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 212 | |
| 213 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 214 | GtkAccessibleRolecxx . . $ GtkAccessibleRole# gtk_accessible_get_accessible_rolecxx . . $ gtk_accessible_get_accessible_role(f116a87e5d5a98e5). (GtkAccessiblecxx . . $ GtkAccessible# *self); |
| 215 | |
| 216 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 217 | void gtk_accessible_update_statecxx . . $ gtk_accessible_update_state(a322e699be08ab8a). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 218 | GtkAccessibleStatecxx . . $ GtkAccessibleState# first_state, |
| 219 | ...); |
| 220 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 221 | void gtk_accessible_update_propertycxx . . $ gtk_accessible_update_property(7f02be67e42032aa). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 222 | GtkAccessiblePropertycxx . . $ GtkAccessibleProperty# first_property, |
| 223 | ...); |
| 224 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 225 | void gtk_accessible_update_relationcxx . . $ gtk_accessible_update_relation(ee5ad1c3df8c751). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 226 | GtkAccessibleRelationcxx . . $ GtkAccessibleRelation# first_relation, |
| 227 | ...); |
| 228 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 229 | void gtk_accessible_update_state_valuecxx . . $ gtk_accessible_update_state_value(a5a6777a7433e922). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 230 | int n_states, |
| 231 | GtkAccessibleStatecxx . . $ GtkAccessibleState# states[], |
| 232 | const GValuecxx . . $ GValue# values[]); |
| 233 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 234 | void gtk_accessible_update_property_valuecxx . . $ gtk_accessible_update_property_value(1fed0b120e743c46). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 235 | int n_properties, |
| 236 | GtkAccessiblePropertycxx . . $ GtkAccessibleProperty# properties[], |
| 237 | const GValuecxx . . $ GValue# values[]); |
| 238 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 239 | void gtk_accessible_update_relation_valuecxx . . $ gtk_accessible_update_relation_value(6dcc5f454fed1ac6). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 240 | int n_relations, |
| 241 | GtkAccessibleRelationcxx . . $ GtkAccessibleRelation# relations[], |
| 242 | const GValuecxx . . $ GValue# values[]); |
| 243 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 244 | void gtk_accessible_reset_statecxx . . $ gtk_accessible_reset_state(a21a779102f74de1). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 245 | GtkAccessibleStatecxx . . $ GtkAccessibleState# state); |
| 246 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 247 | void gtk_accessible_reset_propertycxx . . $ gtk_accessible_reset_property(58234f89de8af20e). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 248 | GtkAccessiblePropertycxx . . $ GtkAccessibleProperty# property); |
| 249 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 250 | void gtk_accessible_reset_relationcxx . . $ gtk_accessible_reset_relation(d8116f91fffa0a9e). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 251 | GtkAccessibleRelationcxx . . $ GtkAccessibleRelation# relation); |
| 252 | |
| 253 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 254 | void gtk_accessible_state_init_valuecxx . . $ gtk_accessible_state_init_value(7026b511ce7fc5c5). (GtkAccessibleStatecxx . . $ GtkAccessibleState# state, |
| 255 | GValuecxx . . $ GValue# *value); |
| 256 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 257 | void gtk_accessible_property_init_valuecxx . . $ gtk_accessible_property_init_value(bf54ca2e68eeeb1). (GtkAccessiblePropertycxx . . $ GtkAccessibleProperty# property, |
| 258 | GValuecxx . . $ GValue# *value); |
| 259 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 260 | void gtk_accessible_relation_init_valuecxx . . $ gtk_accessible_relation_init_value(c79ee69bf61ee6cc). (GtkAccessibleRelationcxx . . $ GtkAccessibleRelation# relation, |
| 261 | GValuecxx . . $ GValue# *value); |
| 262 | |
| 263 | #define GTK_ACCESSIBLE_LISTcxx . . $ `gtk/gtkaccessible.h:263:9`! (gtk_accessible_list_get_type()) |
| 264 | |
| 265 | GDK_AVAILABLE_IN_4_14cxx . . $ `build/gdk/version/gdk-visibility.h:301:9`! |
| 266 | GTypecxx . . $ GType# gtk_accessible_list_get_typecxx . . $ gtk_accessible_list_get_type(f708dce9a8856c70). (void); |
| 267 | |
| 268 | GDK_AVAILABLE_IN_4_14cxx . . $ `build/gdk/version/gdk-visibility.h:301:9`! |
| 269 | GListcxx . . $ GList# * gtk_accessible_list_get_objectscxx . . $ gtk_accessible_list_get_objects(10719cf0c6bc89ed). (GtkAccessibleListcxx . . $ GtkAccessibleList# *accessible_list); |
| 270 | |
| 271 | GDK_AVAILABLE_IN_4_14cxx . . $ `build/gdk/version/gdk-visibility.h:301:9`! |
| 272 | GtkAccessibleListcxx . . $ GtkAccessibleList# * gtk_accessible_list_new_from_listcxx . . $ gtk_accessible_list_new_from_list(271b498c3ff0522e). (GListcxx . . $ GList# *list); |
| 273 | |
| 274 | GDK_AVAILABLE_IN_4_14cxx . . $ `build/gdk/version/gdk-visibility.h:301:9`! |
| 275 | GtkAccessibleListcxx . . $ GtkAccessibleList# * gtk_accessible_list_new_from_arraycxx . . $ gtk_accessible_list_new_from_array(3c13a23cc78a6ac6). (GtkAccessiblecxx . . $ GtkAccessible# **accessibles, |
| 276 | gsizecxx . . $ gsize# n_accessibles); |
| 277 | |
| 278 | GDK_AVAILABLE_IN_4_14cxx . . $ `build/gdk/version/gdk-visibility.h:301:9`! |
| 279 | void gtk_accessible_announcecxx . . $ gtk_accessible_announce(1f42b7ee8b6e12ec). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 280 | const char *message, |
| 281 | GtkAccessibleAnnouncementPrioritycxx . . $ GtkAccessibleAnnouncementPriority# priority); |
| 282 | |
| 283 | GDK_AVAILABLE_IN_4_18cxx . . $ `build/gdk/version/gdk-visibility.h:369:9`! |
| 284 | void gtk_accessible_update_platform_statecxx . . $ gtk_accessible_update_platform_state(7bc416ef4a5fdd38). (GtkAccessiblecxx . . $ GtkAccessible# *self, |
| 285 | GtkAccessiblePlatformStatecxx . . $ GtkAccessiblePlatformState# state); |
| 286 | |
| 287 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |