summaryrefslogtreecommitdiffstats
path: root/ganv/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-24 13:44:02 +0100
committerDavid Robillard <d@drobilla.net>2018-11-24 13:44:02 +0100
commitd74de7f575a9ec49f96138c3c5251f28946c0c0e (patch)
treed9b620bfba1e7462df4ddb3f6225cc5216c0ca81 /ganv/node.h
parentc6e874c2cc1c5c99a3859112e1bba0f07bcdb8ba (diff)
downloadganv-d74de7f575a9ec49f96138c3c5251f28946c0c0e.tar.gz
ganv-d74de7f575a9ec49f96138c3c5251f28946c0c0e.tar.bz2
ganv-d74de7f575a9ec49f96138c3c5251f28946c0c0e.zip
Squashed 'waflib/' changes from 6e726eb..5ea8f99
5ea8f99 Improve test output spacing 0e23b29 Raise exception when test suite fails to ensure non-zero exit status d6de073 Show run time of unit tests 5b65554 Add short configure option for ultra-strict flags 4687ba6 Use gtest-like test output 258903d Fix failure count in test group summaries da07e73 Fix verbose tests with Python 3 git-subtree-dir: waflib git-subtree-split: 5ea8f99f6e1246079c1fe6bb590c38a53aadd40d
Diffstat (limited to 'ganv/node.h')
-rw-r--r--ganv/node.h179
1 files changed, 0 insertions, 179 deletions
diff --git a/ganv/node.h b/ganv/node.h
deleted file mode 100644
index b0dd82f..0000000
--- a/ganv/node.h
+++ /dev/null
@@ -1,179 +0,0 @@
-/* This file is part of Ganv.
- * Copyright 2007-2014 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_NODE_H
-#define GANV_NODE_H
-
-#include "ganv/item.h"
-#include "ganv/types.h"
-#include "ganv/text.h"
-
-G_BEGIN_DECLS
-
-#define GANV_TYPE_NODE (ganv_node_get_type())
-#define GANV_NODE(obj) (GTK_CHECK_CAST((obj), GANV_TYPE_NODE, GanvNode))
-#define GANV_NODE_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), GANV_TYPE_NODE, GanvNodeClass))
-#define GANV_IS_NODE(obj) (GTK_CHECK_TYPE((obj), GANV_TYPE_NODE))
-#define GANV_IS_NODE_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GANV_TYPE_NODE))
-#define GANV_NODE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS((obj), GANV_TYPE_NODE, GanvNodeClass))
-
-typedef struct _GanvNodeClass GanvNodeClass;
-typedef struct _GanvNodePrivate GanvNodePrivate;
-
-struct _GanvNode {
- GanvItem item;
- GanvNodePrivate* impl;
-};
-
-struct _GanvNodeClass {
- GanvItemClass parent_class;
-
- void (*tick)(GanvNode* self,
- double seconds);
-
- void (*move)(GanvNode* node,
- double dx,
- double dy);
-
- void (*move_to)(GanvNode* node,
- double x,
- double y);
-
- void (*resize)(GanvNode* node);
-
- void (*redraw_text)(GanvNode* node);
-
- void (*disconnect)(GanvNode* node);
-
- gboolean (*is_within)(const GanvNode* self,
- double x1,
- double y1,
- double x2,
- double y2);
-
- void (*tail_vector)(const GanvNode* self,
- const GanvNode* head,
- double* x,
- double* y,
- double* dx,
- double* dy);
-
- void (*head_vector)(const GanvNode* self,
- const GanvNode* tail,
- double* x,
- double* y,
- double* dx,
- double* dy);
-
- /* Reserved for future expansion */
- gpointer spare_vmethods[4];
-};
-
-GType ganv_node_get_type(void) G_GNUC_CONST;
-
-/**
- * ganv_node_can_tail:
- *
- * Return value: True iff node can act as the tail of an edge.
- */
-gboolean
-ganv_node_can_tail(const GanvNode* node);
-
-/**
- * ganv_node_can_head:
- *
- * Return value: True iff node can act as the head of an edge.
- */
-gboolean
-ganv_node_can_head(const GanvNode* node);
-
-/**
- * ganv_node_set_is_source:
- *
- * Flag a node as a source. This information is used to influence layout.
- */
-void
-ganv_node_set_is_source(const GanvNode* node, gboolean is_source);
-
-/**
- * ganv_node_is_within:
- *
- * Return value: True iff node is entirely within the given rectangle.
- */
-gboolean
-ganv_node_is_within(const GanvNode* node,
- double x1,
- double y1,
- double x2,
- double y2);
-
-const char* ganv_node_get_label(const GanvNode* node);
-
-double ganv_node_get_border_width(const GanvNode* node);
-
-void ganv_node_set_border_width(const GanvNode* node, double border_width);
-
-double ganv_node_get_dash_length(const GanvNode* node);
-
-void ganv_node_set_dash_length(const GanvNode* node, double dash_length);
-
-double ganv_node_get_dash_offset(const GanvNode* node);
-
-void ganv_node_set_dash_offset(const GanvNode* node, double dash_offset);
-
-guint ganv_node_get_fill_color(const GanvNode* node);
-
-void ganv_node_set_fill_color(const GanvNode* node, guint fill_color);
-
-guint ganv_node_get_border_color(const GanvNode* node);
-
-void ganv_node_set_border_color(const GanvNode* node, guint border_color);
-
-/**
- * ganv_node_get_partner:
- *
- * Return value: (transfer none): The partner of @node.
- */
-GanvNode*
-ganv_node_get_partner(const GanvNode* node);
-
-void ganv_node_set_label(GanvNode* node, const char* str);
-void ganv_node_set_show_label(GanvNode* node, gboolean show);
-
-void
-ganv_node_move(GanvNode* node,
- double dx,
- double dy);
-
-void
-ganv_node_move_to(GanvNode* node,
- double x,
- double y);
-
-void
-ganv_node_resize(GanvNode* node);
-
-void
-ganv_node_redraw_text(GanvNode* node);
-
-void
-ganv_node_disconnect(GanvNode* node);
-
-gboolean
-ganv_node_is_selected(GanvNode* node);
-
-G_END_DECLS
-
-#endif /* GANV_NODE_H */