wex v26.10.0
wex::range_item Struct Reference

Represents a range in a document, defined by two positions. More...

#include <wex/ui/lsp.h>

Public Member Functions

 range_item (const position_item &strt=position_item(), const position_item &end=position_item())
 Default constructor.
 range_item (const boost::json::object &obj)
 Constructor from a json object.
boost::json::object json_object () const
 Returns a JSON object representation of the range_item.
std::stringstream log () const
 Logs info about this class.
bool set (const boost::json::object &obj)
 Sets from a json range object item.
void set_target (wxStyledTextCtrl *stc) const
 Sets the target range in the given wxStyledTextCtrl based on this range_item.

Detailed Description

Represents a range in a document, defined by two positions.

Member Function Documentation

◆ set()

bool wex::range_item::set ( const boost::json::object & obj)

Sets from a json range object item.

Returns true if value can be converted.