wex  v21.04.0
Public Member Functions | List of all members
wex::core::text_window Class Referenceabstract

Offers a text window. More...

#include <wex/text-window.h>

Inheritance diagram for wex::core::text_window:
Inheritance graph
[legend]

Public Member Functions

virtual bool find (const std::string &text, int find_flags=-1, bool find_next=true)=0
 Pure virtual interface. More...
 
virtual int get_line_count () const =0
 Returns number of lines.
 
virtual int get_line_count_request ()=0
 Request for number of lines.
 
virtual void goto_line (int line)=0
 Goes to specified line.
 

Detailed Description

Offers a text window.

Member Function Documentation

◆ find()

virtual bool wex::core::text_window::find ( const std::string &  text,
int  find_flags = -1,
bool  find_next = true 
)
pure virtual

Pure virtual interface.

Finds next or previous.

Parameters
texttext to find
find_flagssearch flags to be used:
  • wxSTC_FIND_WHOLEWORD
  • wxSTC_FIND_MATCHCASE
  • wxSTC_FIND_WORDSTART
  • wxSTC_FIND_REGEXP
  • wxSTC_FIND_POSIX
  • if -1, use flags from find replace data
find_nextfinds next or previous

Implemented in wex::stc, and wex::ex_stream.