summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessibleprivate.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-07-08 16:56:31 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-07-26 20:31:14 +0100
commit566f75af824d77a968fb8a835a7ab8d4f3331bf6 (patch)
tree681519f260e56311a2f11f48e64a5872115b5481 /gtk/gtkaccessibleprivate.h
parenta382dfd3bd7d4de1e2285a6d822a3c99506e6f75 (diff)
downloadgtk+-566f75af824d77a968fb8a835a7ab8d4f3331bf6.tar.gz
Plug GtkATContext into GtkAccessible
An Accessible implementation must create an ATContext object. UI elements are supposed to interact with the GtkAccessible API, but we expose GtkATContext to allow patterns like delegation.
Diffstat (limited to 'gtk/gtkaccessibleprivate.h')
-rw-r--r--gtk/gtkaccessibleprivate.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/gtk/gtkaccessibleprivate.h b/gtk/gtkaccessibleprivate.h
new file mode 100644
index 0000000000..aa5701cf50
--- /dev/null
+++ b/gtk/gtkaccessibleprivate.h
@@ -0,0 +1,37 @@
+/* gtkaccessibleprivate.h: Accessible interface
+ *
+ * Copyright 2020 GNOME Foundation
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "gtkaccessible.h"
+#include "gtkatcontext.h"
+
+G_BEGIN_DECLS
+
+struct _GtkAccessibleInterface
+{
+ GTypeInterface g_iface;
+
+ GtkATContext * (* get_at_context) (GtkAccessible *self);
+};
+
+GtkATContext * gtk_accessible_get_at_context (GtkAccessible *self);
+
+G_END_DECLS