24 #ifndef SCINTILLA_TRICKS_H 25 #define SCINTILLA_TRICKS_H 28 #include <wx/stc/stc.h> 39 SCINTILLA_TRICKS( wxStyledTextCtrl* aScintilla,
const wxString& aBraces,
bool aSingleLine,
40 std::function<
void()> m_enterCallback = [](){ } );
42 void DoAutocomplete(
const wxString& aPartial,
const wxArrayString& aTokens );
68 #endif // SCINTILLA_TRICKS_H void onCharHook(wxKeyEvent &aEvent)
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
int firstNonWhitespace(int aLine, int *aWhitespaceCount=nullptr)
void DoAutocomplete(const wxString &aPartial, const wxArrayString &aTokens)
bool m_suppressAutocomplete
void CancelAutocomplete()
std::function< void()> m_returnCallback
SCINTILLA_TRICKS(wxStyledTextCtrl *aScintilla, const wxString &aBraces, bool aSingleLine, std::function< void()> m_enterCallback=[](){ })
void onThemeChanged(wxSysColourChangedEvent &aEvent)
void onScintillaUpdateUI(wxStyledTextEvent &aEvent)