From 307fe4be9208636e54f90a24f6d0deb56512069d Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 8 Oct 2020 04:15:52 -0400 Subject: Per-character text selection --- ui/linearview.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/linearview.h') diff --git a/ui/linearview.h b/ui/linearview.h index 413b66e1..c429e31d 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -27,6 +27,7 @@ struct BINARYNINJAUIAPI LinearViewCursorPosition BinaryNinja::Ref cursor; size_t lineIndex; size_t tokenIndex; + size_t characterIndex; LinearViewCursorPosition(); LinearViewCursorPosition(const LinearViewCursorPosition& pos); @@ -151,6 +152,10 @@ class BINARYNINJAUIAPI LinearView: public QAbstractScrollArea, public View, publ void getHexDumpLineBytes(const BinaryNinja::LinearDisassemblyLine& line, size_t& skippedBytes, size_t& totalBytes, size_t& totalCols); + void paintHexDumpLine(QPainter& p, const LinearViewLine& line, int xoffset, int y, uint32_t addrLen, int tagOffset); + void paintAnalysisWarningLine(QPainter& p, const LinearViewLine& line, int xoffset, int y); + void paintTokenLine(QPainter& p, const LinearViewLine& line, int xoffset, int y, QRect eventRect, int tagOffset); + void setSectionSemantics(const std::string& name, BNSectionSemantics semantics); bool isLineValidHighlight(const BinaryNinja::LinearDisassemblyLine& line); -- cgit v1.3.1