/usr/include/ganv-1/ganv/node.h is in libganv-dev 1.4.2~dfsg0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | /* This file is part of Ganv.
* Copyright 2007-2012 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 _GanvNodeImpl GanvNodeImpl;
struct _GanvNode {
GanvItem item;
GanvNodeImpl* 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 */
|