diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-09-18 14:38:09 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-09-18 15:47:06 -0400 |
| commit | a4b2f1ed627c2cc7aa6c09dac8390ebce2147d7b (patch) | |
| tree | 75c70df5651ab30cb028caaae0ffc58e674f295c /flowgraphnode.cpp | |
| parent | 5504262629597323782184311297513669076903 (diff) | |
Custom flow graph layout support
Diffstat (limited to 'flowgraphnode.cpp')
| -rw-r--r-- | flowgraphnode.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp index 8a7270d2..e1e2351a 100644 --- a/flowgraphnode.cpp +++ b/flowgraphnode.cpp @@ -66,6 +66,18 @@ void FlowGraphNode::SetBasicBlock(BasicBlock* block) } +void FlowGraphNode::SetX(int x) +{ + BNFlowGraphNodeSetX(m_object, x); +} + + +void FlowGraphNode::SetY(int y) +{ + BNFlowGraphNodeSetY(m_object, y); +} + + int FlowGraphNode::GetX() const { return BNGetFlowGraphNodeX(m_object); @@ -225,3 +237,9 @@ bool FlowGraphNode::IsValidForGraph(FlowGraph* graph) const { return BNIsNodeValidForFlowGraph(graph->GetObject(), m_object); } + + +void FlowGraphNode::SetVisibilityRegion(int x, int y, int w, int h) +{ + BNFlowGraphNodeSetVisibilityRegion(m_object, x, y, w, h); +} |
