35 SCINTILLA_TRICKS( wxStyledTextCtrl* aScintilla,
const wxString& aBraces,
bool aSingleLine,
36 std::function<
void( wxKeyEvent& )> onAcceptHandler =
37 []( wxKeyEvent& aEvent )
39 std::function<void( wxStyledTextEvent& )> onCharAddedHandler =
40 []( wxStyledTextEvent& )
45 void DoTextVarAutocomplete(
46 const std::function<
void(
const wxString& xRef, wxArrayString* tokens )>& getTokensFn );
48 void DoAutocomplete(
const wxString& aPartial,
const wxArrayString& aTokens );
50 void CancelAutocomplete();
55 int firstNonWhitespace(
int aLine,
int* aWhitespaceCount =
nullptr );
57 bool isIMECompositionActive()
const;
59 virtual void onCharHook( wxKeyEvent& aEvent );
60 void onChar( wxStyledTextEvent& aEvent );
61 void onModified( wxStyledTextEvent& aEvent );
62 void onScintillaUpdateUI( wxStyledTextEvent& aEvent );
63 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 &) { })