wex  v21.04.0
Public Member Functions | List of all members
wex::auto_complete Class Reference

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.
 

Detailed Description

Offers a class for auto completion on wex::stc.

Member Function Documentation

◆ activate()

bool wex::auto_complete::activate ( const std::string &  text)

Activates the auto completed text.

This might setup a filter for next auto complete list.

◆ on_char()

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.