Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
viewport.h
Go to the documentation of this file.
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
21 void switch_graph(int);
22 void refreshViewport(void);
26 int save_graph(void);
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 extern void getcolorfromschema(colorschemaset * sc, float l,
34 float maxl, 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);
abstract graph C library, Cgraph API
Agraph_t * graph(char *name)
Definition gv.cpp:31
char * fileName(ingraph_state *sp)
Return name of current file being processed.
Definition ingraphs.c:156
ViewInfo * view
Definition viewport.c:38
graph or subgraph
Definition cgraph.h:425
char * get_attribute_value(char *attr, ViewInfo *view, Agraph_t *g)
Definition viewport.c:80
int save_graph_with_file_name(Agraph_t *graph, char *fileName)
Definition viewport.c:463
void getcolorfromschema(colorschemaset *sc, float l, float maxl, glCompColor *c)
Definition viewport.c:553
void switch_graph(int)
Definition viewport.c:452
void updateRecord(Agraph_t *g)
Definition viewport.c:374
int add_graph_to_viewport_from_file(char *fileName)
Definition viewport.c:364
void set_viewport_settings_from_template(ViewInfo *view, Agraph_t *)
Definition viewport.c:88
int add_graph_to_viewport(Agraph_t *graph, char *)
Definition viewport.c:434
int save_as_graph(void)
Definition viewport.c:513
void close_graph(ViewInfo *view)
Definition viewport.c:74
int do_graph_layout(Agraph_t *graph, int Engine, int keeppos)
void refreshViewport(void)
Definition viewport.c:411
void glexpose(void)
Definition viewport.c:543
void init_viewport(ViewInfo *view)
Definition viewport.c:191
int save_graph(void)
Definition viewport.c:493
parsing and deparsing of xdot operations