Debian Codegraph @

cmd/smyrna/viewport.h

raw
1 /*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11 #pragma once
12
13 //view data structure
14 #include "smyrnadefs.h"
15 #include <gtk/gtk.h>
16 #include <xdot/xdot.h>
17 #include <cgraph/cgraph.h>
18
19 void init_viewport(ViewInfo * view);
20 void set_viewport_settings_from_template(ViewInfo * view, Agraph_t *);
21 void switch_graph(int);
22 void refreshViewport(void);
23 int add_graph_to_viewport_from_file(char *fileName);
24 int add_graph_to_viewport(Agraph_t * graph, char *);
25 void close_graph(ViewInfo * view);
26 int save_graph(void);
27 int save_graph_with_file_name(Agraph_t * graph, char *fileName);
28 int save_as_graph(void);
29
30 int do_graph_layout(Agraph_t * graph, int Engine, int keeppos);
31
32 void glexpose(void);
33 void getcolorfromschema(const colorschemaset sc, float l, float maxl,
34 glCompColor *c);
35 void updateRecord (Agraph_t* g);
36
37
38 /* helper functions */
39 extern char *get_attribute_value(char *attr, ViewInfo * view,
40 Agraph_t * g);