Codechange: C++-ify the Layouter and related functions
They all now access a std::string_view, instead of a "const char *" or std::string (in some cases). Additionally, GetCharAtPosition and friends now return an index instead of a "const char *", as it makes for a more clear interface.
This commit is contained in:

committed by
Patric Stout

parent
61d1b330d1
commit
60399e17bd
@@ -281,7 +281,7 @@ public:
|
||||
virtual const char *GetMarkedText(size_t *length) const;
|
||||
virtual Point GetCaretPosition() const;
|
||||
virtual Rect GetTextBoundingRect(const char *from, const char *to) const;
|
||||
virtual const char *GetTextCharacterAtPosition(const Point &pt) const;
|
||||
virtual ptrdiff_t GetTextCharacterAtPosition(const Point &pt) const;
|
||||
|
||||
void InitNested(WindowNumber number = 0);
|
||||
void CreateNestedTree(bool fill_nested = true);
|
||||
|
Reference in New Issue
Block a user