X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afa9873106ea8e6ee90f8811bae4d06485e42ba6..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/gtk/window.h?ds=inline diff --git a/include/wx/gtk/window.h b/include/wx/gtk/window.h index d107239fd1..6c36ce99c1 100644 --- a/include/wx/gtk/window.h +++ b/include/wx/gtk/window.h @@ -2,7 +2,6 @@ // Name: wx/gtk/window.h // Purpose: // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -20,10 +19,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 +292,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 };