1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxTextCompleter 14{ 15 %Docstring 16 Base class for custom text completer objects. 17 %End 18 %TypeHeaderCode 19 #include <wx/textcompleter.h> 20 %End 21 22public: 23 virtual 24 bool Start( 25 const wxString & prefix 26 ) = 0; 27 %Docstring 28 Start(prefix) -> bool 29 30 Function called to start iteration over the completions for the given 31 prefix. 32 %End 33 34 virtual 35 wxString GetNext() = 0; 36 %Docstring 37 GetNext() -> String 38 39 Called to retrieve the next completion. 40 %End 41 42 private: 43 wxTextCompleter(const wxTextCompleter&); 44 45 46 public: 47 wxTextCompleter(); 48 49 50 public: 51 52 53 %Property(name=Next, get=GetNext) 54}; // end of class wxTextCompleter 55 56 57class wxTextCompleterSimple : wxTextCompleter 58{ 59 %Docstring 60 A simpler base class for custom completer objects. 61 %End 62 %TypeHeaderCode 63 #include <wx/textcompleter.h> 64 %End 65 66public: 67 virtual 68 void GetCompletions( 69 const wxString & prefix, 70 wxArrayString & res /Out/ 71 ) = 0; 72 %Docstring 73 GetCompletions(prefix) -> res 74 75 Pure virtual method returning all possible completions for the given 76 prefix. 77 %End 78 79 public: 80 wxTextCompleterSimple(); 81 82 83 virtual 84 bool Start( 85 const wxString & prefix 86 ); 87 %Docstring 88 Start(prefix) -> bool 89 90 Function called to start iteration over the completions for the given 91 prefix. 92 %End 93 94 virtual 95 wxString GetNext(); 96 %Docstring 97 GetNext() -> String 98 99 Called to retrieve the next completion. 100 %End 101 102 public: 103 104 105 %Property(name=Next, get=GetNext) 106}; // end of class wxTextCompleterSimple 107 108 109 110//--------------------------------------------------------------------------- 111 112