MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / layout

Method layout

python/flowgraph.py:773–784  ·  view source on GitHub ↗

``layout`` starts rendering a graph for display. Once a layout is complete, each node will contain coordinates and extents that can be used to render a graph with minimum additional computation. This function does not wait for the graph to be ready to display, but a callback can be provided

(self, callback=None)

Source from the content-addressed store, hash-verified

771 self.set_option(FlowGraphOption.FlowGraphIsWorkflowGraph, value)
772
773 def layout(self, callback=None):
774 """
775 ``layout`` starts rendering a graph for display. Once a layout is complete, each node will contain
776 coordinates and extents that can be used to render a graph with minimum additional computation.
777 This function does not wait for the graph to be ready to display, but a callback can be provided
778 to signal when the graph is ready.
779
780 :param callback callback: Function to be called when the graph is ready to display
781 :return: Pending flow graph layout request object
782 :rtype: FlowGraphLayoutRequest
783 """
784 return FlowGraphLayoutRequest(self, callback)
785
786 def _wait_complete(self):
787 self._wait_cond.release()

Callers 1

layout_and_waitMethod · 0.95

Calls 1

Tested by

no test coverage detected