1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * bonobo-ui-node.h: Code to manipulate BonoboUINode objects |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Havoc Pennington <hp@redhat.com> |
---|
7 | * |
---|
8 | * Copyright 2000 Red Hat, Inc. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_UI_NODE_H_ |
---|
11 | #define _BONOBO_UI_NODE_H_ |
---|
12 | |
---|
13 | #include <glib.h> |
---|
14 | |
---|
15 | typedef struct _BonoboUINode BonoboUINode; |
---|
16 | |
---|
17 | BonoboUINode *bonobo_ui_node_new (const char *name); |
---|
18 | BonoboUINode *bonobo_ui_node_new_child (BonoboUINode *parent, |
---|
19 | const char *name); |
---|
20 | BonoboUINode *bonobo_ui_node_copy (BonoboUINode *node, |
---|
21 | gboolean recursive); |
---|
22 | void bonobo_ui_node_free (BonoboUINode *node); |
---|
23 | void bonobo_ui_node_set_data (BonoboUINode *node, |
---|
24 | gpointer data); |
---|
25 | gpointer bonobo_ui_node_get_data (BonoboUINode *node); |
---|
26 | void bonobo_ui_node_set_attr (BonoboUINode *node, |
---|
27 | const char *name, |
---|
28 | const char *value); |
---|
29 | char * bonobo_ui_node_get_attr (BonoboUINode *node, |
---|
30 | const char *name); |
---|
31 | gboolean bonobo_ui_node_has_attr (BonoboUINode *node, |
---|
32 | const char *name); |
---|
33 | void bonobo_ui_node_remove_attr (BonoboUINode *node, |
---|
34 | const char *name); |
---|
35 | void bonobo_ui_node_add_child (BonoboUINode *parent, |
---|
36 | BonoboUINode *child); |
---|
37 | void bonobo_ui_node_insert_before (BonoboUINode *sibling, |
---|
38 | BonoboUINode *prev_sibling); |
---|
39 | void bonobo_ui_node_unlink (BonoboUINode *node); |
---|
40 | void bonobo_ui_node_replace (BonoboUINode *old_node, |
---|
41 | BonoboUINode *new_node); |
---|
42 | void bonobo_ui_node_set_content (BonoboUINode *node, |
---|
43 | const char *content); |
---|
44 | char *bonobo_ui_node_get_content (BonoboUINode *node); |
---|
45 | BonoboUINode *bonobo_ui_node_next (BonoboUINode *node); |
---|
46 | BonoboUINode *bonobo_ui_node_prev (BonoboUINode *node); |
---|
47 | BonoboUINode *bonobo_ui_node_children (BonoboUINode *node); |
---|
48 | BonoboUINode *bonobo_ui_node_parent (BonoboUINode *node); |
---|
49 | const char *bonobo_ui_node_get_name (BonoboUINode *node); |
---|
50 | gboolean bonobo_ui_node_has_name (BonoboUINode *node, |
---|
51 | const char *name); |
---|
52 | gboolean bonobo_ui_node_transparent (BonoboUINode *node); |
---|
53 | void bonobo_ui_node_copy_attrs (BonoboUINode *src, |
---|
54 | BonoboUINode *dest); |
---|
55 | |
---|
56 | /* This blows. libxml2 fixes it I guess. */ |
---|
57 | void bonobo_ui_node_free_string (char *str); |
---|
58 | void bonobo_ui_node_strip (BonoboUINode **node); |
---|
59 | |
---|
60 | char * bonobo_ui_node_to_string (BonoboUINode *node, |
---|
61 | gboolean recurse); |
---|
62 | BonoboUINode* bonobo_ui_node_from_string (const char *str); |
---|
63 | BonoboUINode* bonobo_ui_node_from_file (const char *filename); |
---|
64 | |
---|
65 | #endif /* _BONOBO_UI_NODE_H_ */ |
---|