Graphviz 13.0.0~dev.20241220.2304
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);
33void 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);
abstract graph C library, Cgraph API
Agraph_t * graph(char *name)
Definition gv.cpp:30
char * fileName(ingraph_state *sp)
Return name of current file being processed.
Definition ingraphs.c:156
ViewInfo * view
Definition viewport.c:37
graph or subgraph
Definition cgraph.h:425
char * get_attribute_value(char *attr, ViewInfo *view, Agraph_t *g)
Definition viewport.c:77
int save_graph_with_file_name(Agraph_t *graph, char *fileName)
Definition viewport.c:460
void getcolorfromschema(const colorschemaset sc, float l, float maxl, glCompColor *c)
Definition viewport.c:550
void switch_graph(int)
Definition viewport.c:449
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:85
int add_graph_to_viewport(Agraph_t *graph, char *)
Definition viewport.c:431
int save_as_graph(void)
Definition viewport.c:510
void close_graph(ViewInfo *view)
Definition viewport.c:71
int do_graph_layout(Agraph_t *graph, int Engine, int keeppos)
void refreshViewport(void)
Definition viewport.c:411
void glexpose(void)
Definition viewport.c:540
void init_viewport(ViewInfo *view)
Definition viewport.c:190
int save_graph(void)
Definition viewport.c:490
parsing and deparsing of xdot operations