GtkNodesNodeView

GtkNodesNodeView — A node viewer

Functions

Signals

Types and Values

#define GTK_COMPILATION

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkNodesNodeView

Description

The GtkNodesNodeView widget is a viewer and connection manager for GtkNodesNode widgets.

Functions

gtk_nodes_node_view_new ()

GtkWidget *
gtk_nodes_node_view_new (void);

Creates a new node view.

Returns

a new GtkNodesNodeView.


gtk_nodes_node_view_save ()

gboolean
gtk_nodes_node_view_save (GtkNodesNodeView *node_view,
                          const gchar *filename);

Saves a representation of the current node view setup as XML so it can be recreated with gtkbuilder This only works properly for nodes which are their own widget types, as we don't (and can't) in-depth clone the nodes

Parameters

node_view

a GtkNodesNodeView

 

filename

the name of the file to save, if the file exists, it will be overwritten

 

Returns

0 on error


gtk_nodes_node_view_load ()

gboolean
gtk_nodes_node_view_load (GtkNodesNodeView *node_view,
                          const gchar *filename);

Loads an XML description parseable by GtkBuilder and reconstructs a node configuration. Note that this will not restore the internal state of any nodes, but only their placement and the connections between sockets.

This only works properly for nodes which are their own widget types.

Parameters

node_view

a GtkNodesNodeView

 

filename

the name of the file to load

 

Returns

0 if and error occured

Types and Values

GTK_COMPILATION

#define             GTK_COMPILATION

Signal Details

The “node-drag-begin” signal

void
user_function (GtkNodesNodeView *nodesnodeview,
               GtkNodesNode     *arg1,
               gpointer          user_data)

Flags: Run First


The “node-drag-end” signal

void
user_function (GtkNodesNodeView *nodesnodeview,
               GtkNodesNode     *arg1,
               gpointer          user_data)

Flags: Run First