From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- ui/render.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'ui/render.h') diff --git a/ui/render.h b/ui/render.h index a1b55092..92dc654f 100644 --- a/ui/render.h +++ b/ui/render.h @@ -44,7 +44,7 @@ class BINARYNINJAUIAPI FontParameters float m_fontScale; bool m_customFont; -public: + public: FontParameters(QWidget* parent, float fontScale = 1.0f); void update(); @@ -64,7 +64,7 @@ class BINARYNINJAUIAPI RenderContext FontParameters m_fontParams; bool m_drawIndents; -public: + public: RenderContext(QWidget* parent, float fontScale = 1.0f); void update(); @@ -74,12 +74,14 @@ public: void init(QPainter& p); - QColor getColorForHexDumpByte(const HexEditorHighlightState& state, BNModificationStatus modification, uint8_t byte); + QColor getColorForHexDumpByte( + const HexEditorHighlightState& state, BNModificationStatus modification, uint8_t byte); QColor getHighlightColor(BNHighlightColor color); - HighlightTokenState getTokenForDisassemblyLinePosition(int64_t col, const std::vector& tokens); - HighlightTokenState getTokenForDisassemblyTokenIndex(size_t tokenIndex, - const std::vector& tokens); + HighlightTokenState getTokenForDisassemblyLinePosition( + int64_t col, const std::vector& tokens); + HighlightTokenState getTokenForDisassemblyTokenIndex( + size_t tokenIndex, const std::vector& tokens); HighlightTokenState getHighlightTokenForTextToken(const BinaryNinja::InstructionTextToken& token); void drawText(QPainter& p, int x, int y, QColor color, const QString& text); @@ -88,14 +90,15 @@ public: void drawSeparatorLine(QPainter& p, QColor top, QColor bottom, QColor line, const QRect& rect); void drawInstructionHighlight(QPainter& p, const QRect& rect); - void drawLinearDisassemblyLineBackground(QPainter& p, BNLinearDisassemblyLineType type, const QRect& rect, - int gutterWidth); - void drawDisassemblyLine(QPainter& p, int left, int top, const std::vector& tokens, - HighlightTokenState& highlight, bool highlightOnly=false); + void drawLinearDisassemblyLineBackground( + QPainter& p, BNLinearDisassemblyLineType type, const QRect& rect, int gutterWidth); + void drawDisassemblyLine(QPainter& p, int left, int top, + const std::vector& tokens, HighlightTokenState& highlight, + bool highlightOnly = false); - 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); + 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(); } void setFont(const QFont& font); -- cgit v1.3.1