summaryrefslogtreecommitdiff
path: root/flowgraphnode.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-09-18 14:38:09 -0400
committerJosh Ferrell <josh@vector35.com>2024-09-18 15:47:06 -0400
commita4b2f1ed627c2cc7aa6c09dac8390ebce2147d7b (patch)
tree75c70df5651ab30cb028caaae0ffc58e674f295c /flowgraphnode.cpp
parent5504262629597323782184311297513669076903 (diff)
Custom flow graph layout support
Diffstat (limited to 'flowgraphnode.cpp')
-rw-r--r--flowgraphnode.cpp18
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);
+}