X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afa9873106ea8e6ee90f8811bae4d06485e42ba6..9c34a216817028bc533e07873d047208a96b05a2:/include/wx/gtk/window.h diff --git a/include/wx/gtk/window.h b/include/wx/gtk/window.h index d107239fd1..171f34fac9 100644 --- a/include/wx/gtk/window.h +++ b/include/wx/gtk/window.h @@ -20,10 +20,6 @@ #define WXUNUSED_IN_GTK3(x) x #endif -// helper structure that holds class that holds GtkIMContext object and -// some additional data needed for key events processing -struct wxGtkIMData; - typedef struct _GdkEventKey GdkEventKey; typedef struct _GtkIMContext GtkIMContext; @@ -297,6 +293,18 @@ public: // methods for accessing it such gtk_entry_im_context_filter_keypress(). virtual int GTKIMFilterKeypress(GdkEventKey* event) const; + // This method must be called from the derived classes "insert-text" signal + // handlers to check if the text is not being inserted by the IM and, if + // this is the case, generate appropriate wxEVT_CHAR events for it. + // + // Returns true if we did generate and process events corresponding to this + // text or false if we didn't handle it. + bool GTKOnInsertText(const char* text); + + // This is just a helper of GTKOnInsertText() which is also used by GTK+ + // "commit" signal handler. + bool GTKDoInsertTextFromIM(const char* text); + // indices for the arrays below enum ScrollDir { ScrollDir_Horz, ScrollDir_Vert, ScrollDir_Max };