summaryrefslogtreecommitdiff
path: root/flowgraph.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 /flowgraph.cpp
parent5504262629597323782184311297513669076903 (diff)
Custom flow graph layout support
Diffstat (limited to 'flowgraph.cpp')
-rw-r--r--flowgraph.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/flowgraph.cpp b/flowgraph.cpp
index 1bbf7fc3..257764c9 100644
--- a/flowgraph.cpp
+++ b/flowgraph.cpp
@@ -275,12 +275,24 @@ int FlowGraph::GetWidth() const
}
+void FlowGraph::SetWidth(int width)
+{
+ BNFlowGraphSetWidth(m_object, width);
+}
+
+
int FlowGraph::GetHeight() const
{
return BNGetFlowGraphHeight(m_object);
}
+void FlowGraph::SetHeight(int height)
+{
+ BNFlowGraphSetHeight(m_object, height);
+}
+
+
vector<Ref<FlowGraphNode>> FlowGraph::GetNodesInRegion(int left, int top, int right, int bottom)
{
size_t count;