imnodes

Bindings for ImNodes. Can be used in the re.on_frame callback.

Real world examples can be found in the BHVT Editor


Enums

imnodes.ImNodesPinShape

  • DEFAULT, RADIUS, NONE

imnodes.ImNodesMiniMapLocation

  • NONE, BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT

imnodes.ImNodesCol

Style color identifiers (GRAPHCOLORCOUNT total).

imnodes.ImNodesStyleVar

Style variable identifiers (STYLEVARCOUNT total).


imnodes.is_editor_hovered

imnodes.is_node_hovered

imnodes.is_pin_hovered

imnodes.begin_node_editor

imnodes.end_node_editor

imnodes.begin_node

imnodes.end_node

imnodes.begin_node_titlebar

imnodes.end_node_titlebar

imnodes.begin_input_attribute(attr, shape)

shape is optional, defaults to DEFAULT. Use imnodes.ImNodesPinShape enum.

imnodes.end_input_attribute

imnodes.begin_output_attribute(attr, shape)

shape is optional, defaults to DEFAULT. Use imnodes.ImNodesPinShape enum.

imnodes.end_output_attribute

imnodes.begin_static_attribute

imnodes.end_static_attribute

imnodes.minimap(size_fraction, location)

size_fraction is the size of the minimap as a fraction of the editor. location is optional, use imnodes.ImNodesMiniMapLocation enum.

imnodes.link(id, start_attr_id, end_attr_id)

Creates a link between two attributes with the specified id.

imnodes.get_node_dimensions

imnodes.push_color_style

imnodes.pop_color_style

imnodes.push_style_var

imnodes.push_style_var_vec2

imnodes.pop_style_var

imnodes.set_node_screen_space_pos

imnodes.set_node_editor_space_pos

imnodes.set_node_grid_space_pos

imnodes.get_node_screen_space_pos

imnodes.get_node_editor_space_pos

imnodes.get_node_grid_space_pos

imnodes.is_editor_hovered

imnodes.is_node_selected

imnodes.num_selected_nodes

imnodes.clear_node_selection

imnodes.select_node

imnodes.is_attribute_active

imnodes.snap_node_to_grid

imnodes.editor_move_to_node

imnodes.editor_reset_panning(x, y)

Resets the editor panning to the specified x and y coordinates.

imnodes.editor_get_panning

imnodes.get_selected_nodes