diff options
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/canvas.h | 4 | ||||
-rw-r--r-- | ganv/ganv.h | 31 | ||||
-rw-r--r-- | ganv/module.h | 4 | ||||
-rw-r--r-- | ganv/port.h | 14 |
4 files changed, 46 insertions, 7 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h index 4e3c687..a5bb441 100644 --- a/ganv/canvas.h +++ b/ganv/canvas.h @@ -63,6 +63,10 @@ ganv_canvas_resize(GanvCanvas* canvas, double width, double height); GnomeCanvasGroup* ganv_canvas_get_root(const GanvCanvas* canvas); +void +ganv_canvas_add_node(GanvCanvas* canvas, + GanvNode* node); + /** Get the default font size in points. */ double ganv_canvas_get_default_font_size(const GanvCanvas* canvas); diff --git a/ganv/ganv.h b/ganv/ganv.h new file mode 100644 index 0000000..3b84935 --- /dev/null +++ b/ganv/ganv.h @@ -0,0 +1,31 @@ +/* This file is part of Ganv. + * Copyright 2007-2011 David Robillard <http://drobilla.net> + * + * Ganv is free software: you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or any later version. + * + * Ganv is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + * + * You should have received a copy of the GNU General Public License along + * with Ganv. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef GANV_GANV_H +#define GANV_GANV_H + +#include "ganv/box.h" +#include "ganv/canvas.h" +#include "ganv/circle.h" +#include "ganv/edge.h" +#include "ganv/ganv.h" +#include "ganv/module.h" +#include "ganv/node.h" +#include "ganv/port.h" +#include "ganv/text.h" +#include "ganv/types.h" + +#endif /* GANV_GANV_H */ + diff --git a/ganv/module.h b/ganv/module.h index 0aace15..e4b4e79 100644 --- a/ganv/module.h +++ b/ganv/module.h @@ -55,6 +55,10 @@ struct _GanvModuleClass { GType ganv_module_get_type(void); +GanvModule* +ganv_module_new(GanvCanvas* canvas, + const char* first_prop_name, ...); + void ganv_module_add_port(GanvModule* module, GanvPort* port); diff --git a/ganv/port.h b/ganv/port.h index 6b464c2..a3769f7 100644 --- a/ganv/port.h +++ b/ganv/port.h @@ -43,7 +43,7 @@ struct _GanvPort { GanvBox box; GanvPortControl* control; - gboolean is_input; + gboolean is_input; }; struct _GanvPortClass { @@ -54,8 +54,8 @@ GType ganv_port_get_type(void); GanvPort* ganv_port_new(GanvModule* module, - gboolean is_input, - const char* first_prop_name, ...); + gboolean is_input, + const char* first_prop_name, ...); void ganv_port_show_control(GanvPort* port); @@ -65,19 +65,19 @@ ganv_port_hide_control(GanvPort* port); void ganv_port_set_control_is_toggle(GanvPort* port, - gboolean is_toggle); + gboolean is_toggle); void ganv_port_set_control_value(GanvPort* port, - float value); + float value); void ganv_port_set_control_min(GanvPort* port, - float min); + float min); void ganv_port_set_control_max(GanvPort* port, - float max); + float max); double ganv_port_get_natural_width(const GanvPort* port); |