| Top |
| void | changed | Run Last |
| void | child-added | Run Last |
| void | child-name-changed | Run Last |
| void | child-removed | Run Last |
| void | children-reordered | Run Last |
| void | name-changed | Run Last |
| void | update-editor | Run Last |
| #define | GOG_PARAM_FORCE_SAVE |
| #define | GOG_PARAM_POSITION |
| enum | GogManualSizeMode |
| GogObject | |
| GogObjectClass | |
| enum | GogObjectNamingConv |
| GogObjectRole | |
| enum | GogObjectPosition |
GBoxed ╰── GogObjectRole GObject ╰── GogObject ├── Gog3DBox ├── GogStyledObject ╰── GogPlot
Abstract base class that objects in the graph hierarchy are based on. This class handles manipulation of the object hierarchy, and positioning of objects in the graph.
Every object has a name that is unique in the graph. It can have a parent and a list of children in specific roles (see GogObjectRole). There can generally be several children in each role.
If built with GTK+ support, each object also knows how to populate a widget that allows one to manipulate the attributes of that object. This can be used by GOEditor to present a widget that allows manipulation of the whole graph.
GogObject * gog_object_add_by_name (GogObject *parent,char const *role,GogObject *child);
GogObject * gog_object_add_by_role (GogObject *parent,GogObjectRole const *role,GogObject *child);
Absorb a ref to child
if it is non-NULL.
void gog_object_can_reorder (GogObject const *obj,gboolean *inc_ok,gboolean *dec_ok);
If obj
can move forward or backward in its parents child list
gboolean
gog_object_clear_parent (GogObject *obj);
Does _not_ unref the child, which in effect adds a ref by freeing up the ref previously associated with the parent.
GogObject * gog_object_dup (GogObject const *src,GogObject *new_parent,GogDataDuplicator datadup);
Create a deep copy of obj
using new_parent
as its parent.
GogObjectRole const * gog_object_find_role_by_name (GogObject const *obj,char const *role);
GogObject * gog_object_get_child_by_name (GogObject const *obj,char const *name);
A convenience routine to find a unique child with role == name
GogObject * gog_object_get_child_by_role (GogObject const *obj,GogObjectRole const *role);
A convenience routine to find a unique child with role
.