Class
GeglNode
Constructors
gegl_node_new_from_file
The GeglNode
returned contains the graph described by the tree of stacks
in the XML document. The tree is connected to the “output” pad of the
returned node and thus can be used directly for processing.
gegl_node_new_from_xml
The GeglNode
returned contains the graph described by the tree of stacks
in the XML document. The tree is connected to the “output” pad of the
returned node and thus can be used directly for processing.
Instance methods
gegl_node_add_child
Make the GeglNode graph
, take a reference on child. This reference
will be dropped when the reference count on the graph reaches zero.
gegl_node_connect
Makes a connection between the pads of two nodes, one pad should be a source pad the other a sink pad, order does not matter.
gegl_node_create_child
Creates a new processing node that performs the specified operation. All properties of the operation will have their default values. This is included as an addition to #gegl_node_new_child in the public API to have a non varargs entry point for bindings as well as sometimes simpler more readable code.
gegl_node_detect
Performs hit detection by returning the node providing data at a given coordinate pair. Currently operates only on bounding boxes and not pixel data.
gegl_node_get_bounding_box
Returns the position and dimensions of a rectangle spanning the area defined by a node.
gegl_node_get_consumers
Retrieve which pads on which nodes are connected to a named output_pad, and the number of connections. Both the location for the generated nodes array and pads array can be left as NULL. If they are non NULL both should be freed with g_free. The arrays are NULL terminated.
gegl_node_get_input_proxy
Proxies are used to route between nodes of a subgraph contained within a node.
gegl_node_get_output_proxy
Proxies are used to route between nodes of a subgraph contained within a node.
gegl_node_get_property
This is mainly included for language bindings. Using #gegl_node_get is more convenient when programming in C.
gegl_node_introspectable_get_bounding_box
Returns the position and dimensions of a rectangle spanning the area defined by a node.
gegl_node_link_many
Synthetic sugar for linking a chain of nodes with “output”->”input”. The list is NULL terminated.
gegl_node_list_input_pads
If the node has any input pads this function returns a null terminated array of pad names, otherwise it returns NULL. The return value can be freed with g_strfreev().
gegl_node_list_output_pads
If the node has any output pads this function returns a null terminated array of pad names, otherwise it returns NULL. The return value can be freed with g_strfreev().
gegl_node_new_child
Creates a new processing node that performs the specified operation with a NULL terminated list of key/value pairs for initial parameter values configuring the operation. Usually the first pair should be “operation” and the type of operation to be associated. If no operation is provided the node doesn’t have an initial operation and can be used to construct a subgraph with special middle-man routing nodes created with
gegl_node_get_output_proxy and #gegl_node_get_input_proxy.
gegl_node_process
Render a composition. This can be used for instance on a node with a “png-save” operation to render all necessary data, and make it be written to file. This function wraps the usage of a GeglProcessor in a single blocking function call. If you need a non-blocking operation, then make a direct use of
gegl_processor_work. See GeglProcessor
.
gegl_node_remove_child
Removes a child from a GeglNode. The reference previously held will be dropped so increase the reference count before removing when reparenting a child between two graphs.
gegl_node_set
Set properties on a node, possible properties to be set are the properties of the currently set operations as well as “name” and “operation”. “operation” changes the current operations set for the node, “name” doesn’t have any role internally in GEGL.
gegl_node_set (node, “brightness”, -0.2, “contrast”, 2.0, NULL);
gegl_node_set_property
This is mainly included for language bindings. Using #gegl_node_set is more convenient when programming in C.
gegl_node_set_time
Sets the right value in animated properties of this node and all its dependendcies to be the specified time position.
gegl_node_to_xml
Returns a freshly allocated \0 terminated string containing a XML serialization of the composition produced by a node (and thus also the nodes contributing data to the specified node). To export a gegl graph, connect the internal output node to an output proxy (see
gegl_node_get_output_proxy.) and use the proxy node as the basis
for the serialization.
gegl_node_to_xml_full
Returns a freshly allocated \0 terminated string containing a XML
serialization of a segment of a graph from head
to tail
nodes.
If tail
is NULL
then this behaves just like #gegl_node_to_xml.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.