diff options
author | Neil <nyamatongwe@gmail.com> | 2017-03-07 22:20:45 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-03-07 22:20:45 +1100 |
commit | f60ab1f9516f12b5fccd81f2376f2aef42d83152 (patch) | |
tree | 3251922fba5b0c1281146f7a250fbb0fe5662eaa /gtk/ScintillaGTKAccessible.h | |
parent | 25acad3cbc9b56dd0f006e32c94d56824f1669db (diff) | |
download | scintilla-mirror-f60ab1f9516f12b5fccd81f2376f2aef42d83152.tar.gz |
Bug [#1910]. Accessibility support may be queried and, on GTK+, disabled.
Diffstat (limited to 'gtk/ScintillaGTKAccessible.h')
-rw-r--r-- | gtk/ScintillaGTKAccessible.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/ScintillaGTKAccessible.h b/gtk/ScintillaGTKAccessible.h index 88256e0ca..1905c0619 100644 --- a/gtk/ScintillaGTKAccessible.h +++ b/gtk/ScintillaGTKAccessible.h @@ -23,12 +23,16 @@ private: // cache holding character offset for each line start, see CharacterOffsetFromByteOffset() std::vector<Position> character_offsets; + // cache holding character offset for each line start, see CharacterOffsetFromByteOffset() + std::vector<Position> character_offsets; + // cached length of the deletion, in characters (see Notify()) int deletionLengthChar; // local state for comparing Position old_pos; std::vector<SelectionRange> old_sels; + bool Enabled() const; void UpdateCursor(); void Notify(GtkWidget *widget, gint code, SCNotification *nt); static void SciNotify(GtkWidget *widget, gint code, SCNotification *nt, gpointer data) { @@ -136,6 +140,7 @@ public: // So ScintillaGTK can notify us void ChangeDocument(Document *oldDoc, Document *newDoc); void NotifyReadOnly(); + void SetAccessibility(); // Helper GtkWidget methods static AtkObject *WidgetGetAccessibleImpl(GtkWidget *widget, AtkObject **cache, gpointer widget_parent_class); |