39 SCINTILLA_TRICKS( wxStyledTextCtrl* aScintilla,
const wxString& aBraces,
bool aSingleLine,
40 std::function<
void( wxKeyEvent& )> onAcceptHandler =
41 []( wxKeyEvent& aEvent )
43 std::function<void( wxStyledTextEvent& )> onCharAddedHandler =
44 []( wxStyledTextEvent& )
49 void DoTextVarAutocomplete(
50 const std::function<
void(
const wxString& xRef, wxArrayString* tokens )>& getTokensFn );
52 void DoAutocomplete(
const wxString& aPartial,
const wxArrayString& aTokens );
54 void CancelAutocomplete();
59 int firstNonWhitespace(
int aLine,
int* aWhitespaceCount =
nullptr );
61 virtual void onCharHook( wxKeyEvent& aEvent );
62 void onChar( wxStyledTextEvent& aEvent );
63 void onModified( wxStyledTextEvent& aEvent );
64 void onScintillaUpdateUI( wxStyledTextEvent& aEvent );
65 void onThemeChanged( wxSysColourChangedEvent &aEvent );
SCINTILLA_TRICKS(wxStyledTextCtrl *aScintilla, const wxString &aBraces, bool aSingleLine, std::function< void(wxKeyEvent &)> onAcceptHandler=[](wxKeyEvent &aEvent) { }, std::function< void(wxStyledTextEvent &)> onCharAddedHandler=[](wxStyledTextEvent &) { })