X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ce1bd84eab0dce90ad0ecb4d37c6c2993c2512e..9c112555198f51fcec71106530cddba95a17f3dc:/contrib/src/stc/stc.h.in?ds=sidebyside diff --git a/contrib/src/stc/stc.h.in b/contrib/src/stc/stc.h.in index c7d2bff632..35983ed91c 100644 --- a/contrib/src/stc/stc.h.in +++ b/contrib/src/stc/stc.h.in @@ -149,15 +149,22 @@ public: void StyleSetFontAttr(int styleNum, int size, const wxString& faceName, bool bold, bool italic, - bool underline); + bool underline, + wxFontEncoding encoding=wxFONTENCODING_DEFAULT); + // Set the character set of the font in a style. Converts the Scintilla + // character set values to a wxFontEncoding. + void StyleSetCharacterSet(int style, int characterSet); + + // Set the font encoding to be used by a style. + void StyleSetFontEncoding(int style, wxFontEncoding encoding); + // Perform one of the operations defined by the wxSTC_CMD_* constants. void CmdKeyExecute(int cmd); - // Set the left and right margin in the edit area, measured in pixels. void SetMargins(int left, int right); @@ -258,15 +265,14 @@ public: // Append a string to the end of the document without changing the selection. void AppendTextRaw(const char* text); - #ifdef SWIG - %pythoncode "_stc_utf8_methods.py" + %%pythoncode "_stc_utf8_methods.py" #endif //---------------------------------------------------------------------- #ifndef SWIG -private: +protected: // Event handlers void OnPaint(wxPaintEvent& evt); void OnScrollWin(wxScrollWinEvent& evt); @@ -295,6 +301,7 @@ private: void NotifyChange(); void NotifyParent(SCNotification* scn); +private: DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)