File: gtkaccessiblehypertextprivate.h

package info (click to toggle)
gtk4 4.20.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 187,060 kB
  • sloc: ansic: 779,084; xml: 3,093; javascript: 3,054; python: 1,911; java: 752; sh: 682; makefile: 315; perl: 162; cpp: 21
file content (61 lines) | stat: -rw-r--r-- 2,512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* gtkaccessiblehypertextprivate.h: Private definitions for GtkAccessibleHypertext
 *
 * SPDX-FileCopyrightText: 2025 Red Hat, Inc.
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#pragma once

#include <gtk/gtkaccessible.h>
#include <gtk/gtkaccessibletext.h>
#include <graphene.h>

G_BEGIN_DECLS

#define GTK_ACCESSIBLE_HYPERLINK_TYPE (gtk_accessible_hyperlink_get_type ())

G_DECLARE_FINAL_TYPE (GtkAccessibleHyperlink, gtk_accessible_hyperlink, GTK, ACCESSIBLE_HYPERLINK, GObject);

#define GTK_TYPE_ACCESSIBLE_HYPERTEXT (gtk_accessible_hypertext_get_type ())

G_DECLARE_INTERFACE (GtkAccessibleHypertext, gtk_accessible_hypertext, GTK, ACCESSIBLE_HYPERTEXT, GtkAccessible)

struct _GtkAccessibleHypertextInterface
{
  /*< private >*/
  GTypeInterface g_iface;

  /*< public >*/

  unsigned int (* get_n_links) (GtkAccessibleHypertext *self);

  GtkAccessibleHyperlink *
               (* get_link) (GtkAccessibleHypertext *self,
                             unsigned int            index);

  unsigned int (* get_link_at) (GtkAccessibleHypertext *self,
                                unsigned int            offset);
};

GtkAccessibleHyperlink * gtk_accessible_hyperlink_new (GtkAccessibleHypertext *parent,
                                                       unsigned int            index,
                                                       const char             *uri,
                                                       GtkAccessibleTextRange *bounds);

void gtk_accessible_hyperlink_set_platform_state (GtkAccessibleHyperlink     *self,
                                                  GtkAccessiblePlatformState  state,
                                                  gboolean                    enabled);

unsigned int gtk_accessible_hypertext_get_n_links (GtkAccessibleHypertext *self);
GtkAccessibleHyperlink *
             gtk_accessible_hypertext_get_link    (GtkAccessibleHypertext *self,
                                                   unsigned int            index);
unsigned int gtk_accessible_hypertext_get_link_at (GtkAccessibleHypertext *self,
                                                   unsigned int            offset);

unsigned int gtk_accessible_hyperlink_get_index   (GtkAccessibleHyperlink *self);
const char * gtk_accessible_hyperlink_get_uri     (GtkAccessibleHyperlink *self);
void         gtk_accessible_hyperlink_get_extents (GtkAccessibleHyperlink *self,
                                                   GtkAccessibleTextRange *bounds);

G_END_DECLS