wex v24.10.0
Public Member Functions | List of all members
wex::factory::text_window Class Referenceabstract

Offers a text window. More...

#include <wex/factory/text-window.h>

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

Public Member Functions

virtual ~text_window ()=default
 Destructor.
 
virtual bool find (const std::string &text, int find_flags=-1, bool find_next=true)=0
 Pure virtual interface.
 
virtual int get_current_line () const =0
 Returns current line no.
 
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::factory::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::ex_stream, wex::factory::stc, and wex::stc.