summaryrefslogtreecommitdiff
path: root/ui/render.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-05-09 22:53:01 -0400
committerJosh Ferrell <josh@vector35.com>2024-05-14 15:11:16 -0400
commit08c5286c19fd78fa9d3b9f469a639c7a1013f22e (patch)
tree9f8c4dca8a387431d3c9b2209bcdf88f8dfc832a /ui/render.h
parentcb407be11b08c1c427fcf33a49974155e522e14a (diff)
History widget
Diffstat (limited to 'ui/render.h')
-rw-r--r--ui/render.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/render.h b/ui/render.h
index 8dc0d158..39393e4c 100644
--- a/ui/render.h
+++ b/ui/render.h
@@ -112,7 +112,7 @@ class BINARYNINJAUIAPI RenderContext
size_t tokenIndex, const std::vector<BinaryNinja::InstructionTextToken>& tokens);
HighlightTokenState getHighlightTokenForTextToken(const BinaryNinja::InstructionTextToken& token);
- void drawText(QPainter& p, int x, int y, QColor color, const QString& text);
+ void drawText(QPainter& p, int x, int y, QColor color, const QString& text) const;
void drawUnderlinedText(QPainter& p, int x, int y, QColor color, const QString& text);
void drawSeparatorLine(QPainter& p, QColor top, QColor bottom, QColor line, const QRect& rect);
@@ -120,14 +120,14 @@ class BINARYNINJAUIAPI RenderContext
void drawLinearDisassemblyLineBackground(
QPainter& p, BNLinearDisassemblyLineType type, const QRect& rect, const QRect& dirtyRect, int gutterWidth);
- void drawDisassemblyLine(QPainter& p, int left, int top,
+ int drawDisassemblyLine(QPainter& p, int left, int top,
const std::vector<BinaryNinja::InstructionTextToken>& tokens, HighlightTokenState& highlight,
- bool highlightOnly = false);
+ bool highlightOnly = false) const;
void drawHexEditorLine(QPainter& p, int left, int top, const HexEditorHighlightState& highlight, BinaryViewRef view,
uint64_t lineStartAddr, size_t cols, size_t firstCol, size_t count, bool cursorVisible, bool cursorAscii,
size_t cursorPos, bool byteCursor);
- QFont getFont() { return m_fontParams.getFont(); }
- QFont getEmojiFont() { return m_fontParams.getEmojiFont(); }
+ QFont getFont() const { return m_fontParams.getFont(); }
+ QFont getEmojiFont() const { return m_fontParams.getEmojiFont(); }
void setFont(const QFont& font);
};