summaryrefslogtreecommitdiff
path: root/ui/linearview.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2020-10-08 04:15:52 -0400
committerGlenn Smith <glenn@vector35.com>2020-10-09 03:28:03 -0400
commit307fe4be9208636e54f90a24f6d0deb56512069d (patch)
treeb45d2ec07809f799c8351fb9038ab50d3710cc2f /ui/linearview.h
parent720777f31913ba8c80f24c3460326764a24976a8 (diff)
Per-character text selection
Diffstat (limited to 'ui/linearview.h')
-rw-r--r--ui/linearview.h5
1 files changed, 5 insertions, 0 deletions
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<BinaryNinja::LinearViewCursor> 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);