wex  v21.10.0
Public Member Functions | List of all members
wex::line_data Class Reference

Offers user data to be used by ctrl classes (as listctrl, styledtextctrl). More...

#include <wex/line-data.h>

Inheritance diagram for wex::line_data:
Inheritance graph
[legend]

Public Member Functions

const auto col () const
 Returns column.
 
line_datacol (int col)
 Sets column. More...
 
const auto line () const
 Returns line number.
 
line_dataline (int line, std::function< int(int)> f=nullptr)
 Sets line number. More...
 
virtual void reset ()
 Resets members to default state.
 

Detailed Description

Offers user data to be used by ctrl classes (as listctrl, styledtextctrl).

First you can set the data using Col, Line, Find etc., then call inject to perform the action. You can set several items, inject prioritizes the actions.

Member Function Documentation

◆ col()

wex::line_data & wex::line_data::col ( int  col)
inline

Sets column.

Goes to column if col_number > 0

◆ line()

wex::line_data & wex::line_data::line ( int  line,
std::function< int(int)>  f = nullptr 
)
inline

Sets line number.

Goes to the line if > 0, if -1 goes to end of file