wex
v21.04.0
|
Offers a class for auto completion on wex::stc. More...
#include <wex/auto-complete.h>
Public Member Functions | |
auto_complete (stc *stc) | |
Constructor. | |
~auto_complete () | |
Destructor. | |
bool | activate (const std::string &text) |
Activates the auto completed text. More... | |
void | clear () |
Clears filter and text. | |
bool | on_char (char c) |
Builds and shows auto complete lists on the stc component. More... | |
void | sync () const |
Takes care that auto complete scope is updated with level information on current stc position. | |
bool | use () const |
Returns true if active. | |
void | use (bool on) |
Sets auto completion on or off. | |
Offers a class for auto completion on wex::stc.
bool wex::auto_complete::activate | ( | const std::string & | text | ) |
Activates the auto completed text.
This might setup a filter for next auto complete list.
bool wex::auto_complete::on_char | ( | char | c | ) |
Builds and shows auto complete lists on the stc component.
This can be a list according to CTags, previously inserted text, or keywords for current lexer. Returns true if show was invoked.