wex
v21.10.0
|
Offers user data to be used by ctrl classes (as listctrl, styledtextctrl). More...
#include <wex/line-data.h>
Public Member Functions | |
const auto | col () const |
Returns column. | |
line_data & | col (int col) |
Sets column. More... | |
const auto | line () const |
Returns line number. | |
line_data & | line (int line, std::function< int(int)> f=nullptr) |
Sets line number. More... | |
virtual void | reset () |
Resets members to default state. | |
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.
|
inline |
Sets column.
Goes to column if col_number > 0
|
inline |
Sets line number.
Goes to the line if > 0, if -1 goes to end of file