+ // overridden wxTextEntry virtual methods
+ virtual GtkEditable *GetEditable() const;
+ virtual GtkEntry *GetEntry() const;
+ virtual void EnableTextChangedEvents(bool enable);
+
+ // change the font for everything in this control
+ void ChangeFontGlobally();
+
+ // get the encoding which is used in this control: this looks at our font
+ // and default style but not the current style (i.e. the style for the
+ // current position); returns wxFONTENCODING_SYSTEM if we have no specific
+ // encoding
+ wxFontEncoding GetTextEncoding() const;
+
+ // returns either m_text or m_buffer depending on whether the control is
+ // single- or multi-line; convenient for the GTK+ functions which work with
+ // both
+ void *GetTextObject() const
+ {
+ return IsMultiLine() ? static_cast<void *>(m_buffer)
+ : static_cast<void *>(m_text);
+ }
+
+
+ // the widget used for single line controls