class GraphView

Inherits from QAbstractScrollArea

Subclassed by DisassemblerGraphView, OverviewView

Public Types

enum Layout


using GraphBlock = GraphLayout::GraphBlock
using GraphEdge = GraphLayout::GraphEdge

Public Functions

GraphView(QWidget *parent)
void showBlock(GraphBlock &block, bool anywhere = false)
void showBlock(GraphBlock *block, bool anywhere = false)
void showRectangle(const QRect &rect, bool anywhere = false)

Move view so that area is visible.

  • rect: Rectangle to show
  • anywhere: - set to true for minimizing movement

void setGraphLayout(Layout layout)
Layout getGraphLayout() const
QPoint getViewOffset() const
void setViewOffset(QPoint offset)
qreal getViewScale() const
void setViewScale(qreal scale)
void center()
void centerX()
void centerY()

Public Members

ut64 currentFcnAddr = RVA_INVALID

keep the current addr of the fcn of Graph Everytime overview updates its contents, it compares this value with the one in Graph if they aren’t same, then Overview needs to update the pixmap cache.


signal GraphView::viewOffsetChanged
signal GraphView::viewScaleChanged
struct EdgeConfiguration

Public Members

QColor color = QColor(128, 128, 128)
bool start_arrow = false
bool end_arrow = true
qreal width_scale = 1.0
Qt::PenStyle lineStyle = Qt::PenStyle::SolidLine