Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkaccessibletext.h
Go to the documentation of this file.
1/* gtkaccessibletext.h: Interface for accessible objects containing text
2 *
3 * SPDX-FileCopyrightText: 2023 Emmanuele Bassi
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#pragma once
8
9#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
10#error "Only <gtk/gtk.h> can be included directly."
11#endif
12
13#include <gtk/gtkaccessible.h>
14#include <graphene.h>
15
17
18#define GTK_TYPE_ACCESSIBLE_TEXT (gtk_accessible_text_get_type ())
19
20/**
21 * GtkAccessibleText:
22 *
23 * An interface for accessible objects containing formatted text.
24 *
25 * The `GtkAccessibleText` interfaces is meant to be implemented by accessible
26 * objects that have text formatted with attributes, or non-trivial text contents.
27 *
28 * You should use the [enum@Gtk.AccessibleProperty.LABEL] or the
29 * [enum@Gtk.AccessibleProperty.DESCRIPTION] properties for accessible
30 * objects containing simple, unformatted text.
31 *
32 * Since: 4.14
33 */
35G_DECLARE_INTERFACE (GtkAccessibleText, gtk_accessible_text, GTK, ACCESSIBLE_TEXT, GtkAccessible)
36
37/**
38 * GtkAccessibleTextRange:
39 * @start: the start of the range, in characters
40 * @length: the length of the range, in characters
41 *
42 * A range inside the text of an accessible object.
43 *
44 * Since: 4.14
45 */
50
51/**
52 * GtkAccessibleTextGranularity:
53 * @GTK_ACCESSIBLE_TEXT_GRANULARITY_CHARACTER: Use the boundary between
54 * characters (including non-printing characters)
55 * @GTK_ACCESSIBLE_TEXT_GRANULARITY_WORD: Use the boundary between words,
56 * starting from the beginning of the current word and ending at the
57 * beginning of the next word
58 * @GTK_ACCESSIBLE_TEXT_GRANULARITY_SENTENCE: Use the boundary between
59 * sentences, starting from the beginning of the current sentence and
60 * ending at the beginning of the next sentence
61 * @GTK_ACCESSIBLE_TEXT_GRANULARITY_LINE: Use the boundary between lines,
62 * starting from the beginning of the current line and ending at the
63 * beginning of the next line
64 * @GTK_ACCESSIBLE_TEXT_GRANULARITY_PARAGRAPH: Use the boundary between
65 * paragraphs, starting from the beginning of the current paragraph and
66 * ending at the beginning of the next paragraph
67 *
68 * The granularity for queries about the text contents of a [iface@Gtk.AccessibleText]
69 * implementation.
70 *
71 * Since: 4.14
72 */
80
81/**
82 * GtkAccessibleTextContentChange:
83 * @GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_INSERT: contents change as the result of
84 * an insert operation
85 * @GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_REMOVE: contents change as the result of
86 * a remove operation
87 *
88 * The type of contents change operation.
89 *
90 * Since: 4.14
91 */
96
97/**
98 * GtkAccessibleTextInterface:
99 *
100 * The interface vtable for accessible objects containing text.
101 *
102 * Since: 4.14
103 */
105{
106 /*< private >*/
108
109 /*< public >*/
110
111 /**
112 * GtkAccessibleTextInterface::get_contents:
113 * @self: the accessible object
114 * @start: the beginning of the range, in characters
115 * @end: the end of the range, in characters
116 *
117 * Retrieve the current contents of the accessible object within
118 * the given range.
119 *
120 * If @end is `G_MAXUINT`, the end of the range is the full content
121 * of the accessible object.
122 *
123 * Returns: (transfer full): the requested slice of the contents of the
124 * accessible object, as UTF-8. Note that the slice does not have to
125 * be NUL-terminated
126 *
127 * Since: 4.14
128 */
129 GBytes * (* get_contents) (GtkAccessibleText *self,
130 unsigned int start,
131 unsigned int end);
132
133 /**
134 * GtkAccessibleTextInterface::get_contents_at:
135 * @self: the accessible object
136 * @offset: the offset, in characters
137 * @granularity: the granularity of the query
138 * @start: (out): the start of the range, in characters
139 * @end: (out): the end of the range, in characters
140 *
141 * Retrieve the current contents of the accessible object starting
142 * from the given offset, and using the given granularity.
143 *
144 * The @start and @end values contain the boundaries of the text.
145 *
146 * Returns: (transfer full): the requested slice of the contents of the
147 * accessible object, as UTF-8. Note that the slice does not have to
148 * be NUL-terminated
149 *
150 * Since: 4.14
151 */
152 GBytes * (* get_contents_at) (GtkAccessibleText *self,
153 unsigned int offset,
155 unsigned int *start,
156 unsigned int *end);
157
158 /**
159 * GtkAccessibleTextInterface::get_caret_position:
160 * @self: the accessible object
161 *
162 * Retrieves the position of the caret inside the accessible object.
163 *
164 * Returns: the position of the caret, in characters
165 *
166 * Since: 4.14
167 */
168 unsigned int (* get_caret_position) (GtkAccessibleText *self);
169
170 /**
171 * GtkAccessibleTextInterface::get_selection:
172 * @self: the accessible object
173 * @n_ranges: (out): the number of selection ranges
174 * @ranges: (optional) (out) (array length=n_ranges) (transfer container): the selection ranges
175 *
176 * Retrieves the selection ranges in the accessible object.
177 *
178 * If this function returns true, `n_ranges` will be set to a value
179 * greater than or equal to one, and @ranges will be set to a newly
180 * allocated array of [struct#Gtk.AccessibleTextRange].
181 *
182 * Returns: true if there is at least a selection inside the
183 * accessible object, and false otherwise
184 *
185 * Since: 4.14
186 */
187 gboolean (* get_selection) (GtkAccessibleText *self,
188 gsize *n_ranges,
189 GtkAccessibleTextRange **ranges);
190
191 /**
192 * GtkAccessibleTextInterface::get_attributes:
193 * @self: the accessible object
194 * @offset: the offset, in characters
195 * @n_ranges: (out): the number of attributes
196 * @ranges: (out) (array length=n_ranges) (optional) (transfer container): the ranges of the attributes
197 * inside the accessible object
198 * @attribute_names: (out) (array zero-terminated=1) (optional) (transfer full): the
199 * names of the attributes inside the accessible object
200 * @attribute_values: (out) (array zero-terminated=1) (optional) (transfer full): the
201 * values of the attributes inside the accessible object
202 *
203 * Retrieves the text attributes inside the accessible object.
204 *
205 * Each attribute is composed by:
206 *
207 * - a range
208 * - a name
209 * - a value
210 *
211 * It is left to the implementation to determine the serialization format
212 * of the value to a string.
213 *
214 * GTK provides support for various text attribute names and values, but
215 * implementations of this interface are free to add their own attributes.
216 *
217 * If this function returns true, `n_ranges` will be set to a value
218 * greater than or equal to one, @ranges will be set to a newly
219 * allocated array of [struct#Gtk.AccessibleTextRange].
220 *
221 * Returns: true if the accessible object has at least an attribute,
222 * and false otherwise
223 *
224 * Since: 4.14
225 */
226 gboolean (* get_attributes) (GtkAccessibleText *self,
227 unsigned int offset,
228 gsize *n_ranges,
229 GtkAccessibleTextRange **ranges,
230 char ***attribute_names,
231 char ***attribute_values);
232
233 /**
234 * GtkAccessibleTextInterface::get_default_attributes:
235 * @self: the accessible object
236 * @attribute_names: (out) (array zero-terminated=1) (optional) (transfer full): the
237 * names of the default attributes inside the accessible object
238 * @attribute_values: (out) (array zero-terminated=1) (optional) (transfer full): the
239 * values of the default attributes inside the accessible object
240 *
241 * Retrieves the default text attributes inside the accessible object.
242 *
243 * Each attribute is composed by:
244 *
245 * - a name
246 * - a value
247 *
248 * It is left to the implementation to determine the serialization format
249 * of the value to a string.
250 *
251 * GTK provides support for various text attribute names and values, but
252 * implementations of this interface are free to add their own attributes.
253 *
254 * Since: 4.14
255 */
256 void (* get_default_attributes) (GtkAccessibleText *self,
257 char ***attribute_names,
258 char ***attribute_values);
259
260 /**
261 * GtkAccessibleTextInterface::get_extents:
262 * @self: the accessible object
263 * @start: the start offset, in characters
264 * @end: the end offset, in characters,
265 * @extents (out caller-allocates): return location for the extents
266 *
267 * Obtains the extents of a range of text, in widget coordinates.
268 *
269 * Returns: true if the extents were filled in, false otherwise
270 *
271 * Since: 4.16
272 */
273 gboolean (* get_extents) (GtkAccessibleText *self,
274 unsigned int start,
275 unsigned int end,
276 graphene_rect_t *extents);
277
278 /**
279 * GtkAccessibleTextInterface::get_offset:
280 * @self: the accessible object
281 * @point: a point in widget coordinates of @self
282 * @offset: (out): return location for the text offset at @point
283 *
284 * Gets the text offset at a given point.
285 *
286 * Returns: true if the offset was set, false otherwise
287 *
288 * Since: 4.16
289 */
290 gboolean (* get_offset) (GtkAccessibleText *self,
291 const graphene_point_t *point,
292 unsigned int *offset);
293};
294
296void gtk_accessible_text_update_caret_position (GtkAccessibleText *self);
297
299void gtk_accessible_text_update_selection_bound (GtkAccessibleText *self);
300
302void gtk_accessible_text_update_contents (GtkAccessibleText *self,
304 unsigned int start,
305 unsigned int end);
306
307/**
308 * GTK_ACCESSIBLE_ATTRIBUTE_FAMILY:
309 *
310 * An attribute for the font family name.
311 *
312 * Since: 4.14
313 */
314#define GTK_ACCESSIBLE_ATTRIBUTE_FAMILY "family-name"
315/**
316 * GTK_ACCESSIBLE_ATTRIBUTE_STYLE:
317 *
318 * An attribute for the font style.
319 *
320 * Possible values are:
321 *
322 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL]
323 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE]
324 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC]
325 *
326 * Since: 4.14
327 */
328#define GTK_ACCESSIBLE_ATTRIBUTE_STYLE "style"
329/**
330 * GTK_ACCESSIBLE_ATTRIBUTE_WEIGHT:
331 *
332 * An attribute for the font weight.
333 *
334 * Since: 4.14
335 */
336#define GTK_ACCESSIBLE_ATTRIBUTE_WEIGHT "weight"
337/**
338 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT:
339 *
340 * An attribute for the font variant.
341 *
342 * Possible values are:
343 *
344 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS]
345 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS]
346 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS]
347 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS]
348 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE]
349 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS]
350 *
351 * Since: 4.14
352 */
353#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT "variant"
354/**
355 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH:
356 *
357 * An attribute for the font stretch type.
358 *
359 * Possible values are:
360 *
361 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED]
362 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED]
363 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED]
364 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED]
365 *
366 * Since: 4.14
367 */
368#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH "stretch"
369/**
370 * GTK_ACCESSIBLE_ATTRIBUTE_SIZE:
371 *
372 * An attribute for the font size, expressed in points.
373 *
374 * Since: 4.14
375 */
376#define GTK_ACCESSIBLE_ATTRIBUTE_SIZE "size"
377/**
378 * GTK_ACCESSIBLE_ATTRIBUTE_FOREGROUND:
379 *
380 * An attribute for the foreground color, expressed as an RGB value
381 * encoded in a string using the format: `{r8},{g8},{b8}`.
382 *
383 * Since: 4.14
384 */
385#define GTK_ACCESSIBLE_ATTRIBUTE_FOREGROUND "fg-color"
386/**
387 * GTK_ACCESSIBLE_ATTRIBUTE_BACKGROUND:
388 *
389 * An attribute for the background color, expressed as an RGB value
390 * encoded in a string using the format: `{r8},{g8},{b8}`.
391 *
392 * Since: 4.14
393 */
394#define GTK_ACCESSIBLE_ATTRIBUTE_BACKGROUND "bg-color"
395/**
396 * GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE:
397 *
398 * An attribute for the underline style.
399 *
400 * Possible values are:
401 *
402 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE]
403 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE]
404 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE]
405 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR]
406 *
407 * Since: 4.14
408 */
409#define GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE "underline"
410/**
411 * GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE:
412 *
413 * An attribute for the overline style.
414 *
415 * Possible values are:
416 *
417 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE]
418 * - [const@Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE]
419 *
420 * Since: 4.14
421 */
422#define GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE "overline"
423/**
424 * GTK_ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH:
425 *
426 * An attribute for strikethrough text.
427 *
428 * Possible values are `true` or `false`.
429 *
430 * Since: 4.14
431 */
432#define GTK_ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH "strikethrough"
433
434/**
435 * GTK_ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL:
436 *
437 * The "normal" style value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE].
438 *
439 * Since: 4.14
440 */
441#define GTK_ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL "normal"
442/**
443 * GTK_ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE:
444 *
445 * The "oblique" style value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE].
446 *
447 * Since: 4.14
448 */
449#define GTK_ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE "oblique"
450/**
451 * GTK_ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC:
452 *
453 * The "italic" style value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STYLE].
454 *
455 * Since: 4.14
456 */
457#define GTK_ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC "italic"
458
459/**
460 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS:
461 *
462 * The "small caps" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
463 *
464 * Since: 4.14
465 */
466#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS "small-caps"
467/**
468 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS:
469 *
470 * The "all small caps" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
471 *
472 * Since: 4.14
473 */
474#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS "all-small-caps"
475/**
476 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS:
477 *
478 * The "petite caps" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
479 *
480 * Since: 4.14
481 */
482#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS "petite-caps"
483/**
484 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS:
485 *
486 * The "all petite caps" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
487 *
488 * Since: 4.14
489 */
490#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS "all-petite-caps"
491/**
492 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE:
493 *
494 * The "unicase" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
495 *
496 * Since: 4.14
497 */
498#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE "unicase"
499/**
500 * GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS:
501 *
502 * The "title caps" variant value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_VARIANT].
503 *
504 * Since: 4.14
505 */
506#define GTK_ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS "title-caps"
507
508/**
509 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED:
510 *
511 * The "ultra condensed" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
512 *
513 * Since: 4.14
514 */
515#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED "ultra_condensed"
516/**
517 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED:
518 *
519 * The "extra condensed" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
520 *
521 * Since: 4.14
522 */
523#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED "extra_condensed"
524/**
525 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED:
526 *
527 * The "condensed" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
528 *
529 * Since: 4.14
530 */
531#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED "condensed"
532/**
533 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED:
534 *
535 * The "semi condensed" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
536 *
537 * Since: 4.14
538 */
539#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED "semi_condensed"
540/**
541 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL:
542 *
543 * The "normal" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
544 *
545 * Since: 4.14
546 */
547#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL "normal"
548/**
549 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED:
550 *
551 * The "semi expanded" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
552 *
553 * Since: 4.14
554 */
555#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED "semi_expanded"
556/**
557 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED:
558 *
559 * The "expanded" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
560 *
561 * Since: 4.14
562 */
563#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED "expanded"
564/**
565 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED:
566 *
567 * The "extra expanded" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
568 *
569 * Since: 4.14
570 */
571#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED "extra_expanded"
572/**
573 * GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED:
574 *
575 * The "ultra expanded" stretch value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_STRETCH].
576 *
577 * Since: 4.14
578 */
579#define GTK_ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED "ultra_expanded"
580
581/**
582 * GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE:
583 *
584 * The "none" underline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE].
585 *
586 * Since: 4.14
587 */
588#define GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE "none"
589/**
590 * GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE:
591 *
592 * The "single" underline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE].
593 *
594 * Since: 4.14
595 */
596#define GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE "single"
597/**
598 * GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE:
599 *
600 * The "double" underline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE].
601 *
602 * Since: 4.14
603 */
604#define GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE "double"
605/**
606 * GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR:
607 *
608 * The "error" underline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_UNDERLINE].
609 *
610 * Since: 4.14
611 */
612#define GTK_ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR "error"
613
614/**
615 * GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE:
616 *
617 * The "none" overline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE].
618 *
619 * Since: 4.14
620 */
621#define GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE "none"
622/**
623 * GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE:
624 *
625 * The "single" overline value for [const@Gtk.ACCESSIBLE_ATTRIBUTE_OVERLINE].
626 *
627 * Since: 4.14
628 */
629#define GTK_ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE "single"
630
631
typedefG_BEGIN_DECLS struct _GBytes GBytes
Definition garray.h:38
#define GDK_AVAILABLE_IN_4_14
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GtkAccessibleTextContentChange
@ GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_REMOVE
@ GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_INSERT
GDK_AVAILABLE_IN_4_14 void gtk_accessible_text_update_selection_bound(GtkAccessibleText *self)
GtkAccessibleTextGranularity
@ GTK_ACCESSIBLE_TEXT_GRANULARITY_SENTENCE
@ GTK_ACCESSIBLE_TEXT_GRANULARITY_CHARACTER
@ GTK_ACCESSIBLE_TEXT_GRANULARITY_PARAGRAPH
@ GTK_ACCESSIBLE_TEXT_GRANULARITY_LINE
@ GTK_ACCESSIBLE_TEXT_GRANULARITY_WORD
GDK_AVAILABLE_IN_4_14 void gtk_accessible_text_update_contents(GtkAccessibleText *self, GtkAccessibleTextContentChange change, unsigned int start, unsigned int end)
GDK_AVAILABLE_IN_4_14 void gtk_accessible_text_update_caret_position(GtkAccessibleText *self)
#define G_DECLARE_INTERFACE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, PrerequisiteName)
Definition gtype.h:1797
gint gboolean
Definition gtypes.h:56
gboolean(* get_selection)(GtkAccessibleText *self, gsize *n_ranges, GtkAccessibleTextRange **ranges)
gboolean(* get_attributes)(GtkAccessibleText *self, unsigned int offset, gsize *n_ranges, GtkAccessibleTextRange **ranges, char ***attribute_names, char ***attribute_values)
gboolean(* get_extents)(GtkAccessibleText *self, unsigned int start, unsigned int end, graphene_rect_t *extents)
gboolean(* get_offset)(GtkAccessibleText *self, const graphene_point_t *point, unsigned int *offset)
unsigned int(* get_caret_position)(GtkAccessibleText *self)
void(* get_default_attributes)(GtkAccessibleText *self, char ***attribute_names, char ***attribute_values)