Graphviz  2.41.20170921.2350
Macros | Functions | Variables
gvevent.c File Reference
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "gvplugin_layout.h"
#include "gvcint.h"
#include "gvcproc.h"
Include dependency graph for gvevent.c:

Go to the source code of this file.

Macros

#define PANFACTOR   10
 
#define ZOOMFACTOR   1.1
 
#define EPSILON   .0001
 
#define CLOSEENOUGH   1
 

Functions

char * strdup_and_subst_obj (char *str, void *n)
 
void emit_graph (GVJ_t *job, graph_t *g)
 
boolean overlap_edge (edge_t *e, boxf b)
 
boolean overlap_node (node_t *n, boxf b)
 
int gvLayout (GVC_t *gvc, graph_t *g, const char *engine)
 
int gvRenderFilename (GVC_t *gvc, graph_t *g, const char *format, const char *filename)
 
void graph_cleanup (graph_t *g)
 

Variables

gvevent_key_binding_t gvevent_key_binding []
 
int gvevent_key_binding_size = ARRAY_SIZE(gvevent_key_binding)
 
gvdevice_callbacks_t gvdevice_callbacks
 

Macro Definition Documentation

#define CLOSEENOUGH   1

Definition at line 300 of file gvevent.c.

#define EPSILON   .0001

Definition at line 34 of file gvevent.c.

#define PANFACTOR   10

Definition at line 32 of file gvevent.c.

#define ZOOMFACTOR   1.1

Definition at line 33 of file gvevent.c.

Function Documentation

void emit_graph ( GVJ_t job,
graph_t g 
)
void graph_cleanup ( graph_t g)

Definition at line 847 of file input.c.

int gvLayout ( GVC_t gvc,
graph_t g,
const char *  engine 
)

Definition at line 53 of file gvc.c.

References agerr(), AGERR, agsafeset(), GD_bb, GD_drawing, gvlayout_select(), gvLayoutJobs(), gvplugin_list(), NO_SUPPORT, and ROUND.

Referenced by layout().

int gvRenderFilename ( GVC_t gvc,
graph_t g,
const char *  format,
const char *  filename 
)
boolean overlap_edge ( edge_t e,
boxf  b 
)

Definition at line 1690 of file utils.c.

References splines::bb, ED_label, ED_spl, FALSE, splines::list, overlap_label(), splines::size, and TRUE.

boolean overlap_node ( node_t n,
boxf  b 
)

Definition at line 1626 of file utils.c.

References inside_t::bp, FALSE, boxf::LL, inside_t::n, ND_bb, ND_coord, ND_shape, NULL, OVERLAP, inside_t::s, and boxf::UR.

char* strdup_and_subst_obj ( char *  str,
void *  n 
)

Definition at line 451 of file labels.c.

Referenced by graph_init(), and initMapData().

Variable Documentation

gvdevice_callbacks_t gvdevice_callbacks
Initial value:
= {
gvevent_refresh,
gvevent_button_press,
gvevent_button_release,
gvevent_motion,
gvevent_modify,
gvevent_delete,
gvevent_read,
gvevent_layout,
gvevent_render,
}

Definition at line 663 of file gvevent.c.

Referenced by gvRenderJobs().

gvevent_key_binding_t gvevent_key_binding[]
Initial value:
= {
{"Q", quit_cb},
{"Left", left_cb},
{"KP_Left", left_cb},
{"Right", right_cb},
{"KP_Right", right_cb},
{"Up", up_cb},
{"KP_Up", up_cb},
{"Down", down_cb},
{"KP_Down", down_cb},
{"plus", zoom_in_cb},
{"KP_Add", zoom_in_cb},
{"minus", zoom_out_cb},
{"KP_Subtract", zoom_out_cb},
{"F", toggle_fit_cb},
}

Definition at line 644 of file gvevent.c.

Referenced by gvRenderJobs().

int gvevent_key_binding_size = ARRAY_SIZE(gvevent_key_binding)

Definition at line 661 of file gvevent.c.

Referenced by gvRenderJobs().