#include "render.h"
#include "htmltable.h"
#include <limits.h>
Include dependency graph for shapes.c:
Go to the source code of this file.
Defines | |
#define | RBCONST 12 |
#define | RBCURVE .5 |
#define | ATTR_SET(a, n) ((a) && (*(agxget(n,a->index)) != '\0')) |
#define | DEF_POINT 0.05 |
#define | MIN_POINT 0.0003 |
#define | IS_BOX(n) (ND_shape(n)->polygon == &p_box) |
#define | SPECIAL_CORNERS(style) ((style) & (ROUNDED | DIAGONALS | DOGEAR | TAB | FOLDER | BOX3D | COMPONENT)) |
#define | GET_PORT_BOX(n, e) ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp) |
#define | HASTEXT 1 |
#define | HASPORT 2 |
#define | HASTABLE 4 |
#define | INTEXT 8 |
#define | INPORT 16 |
#define | ISCTRL(c) ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>') |
Functions | |
void | round_corners (GVJ_t *job, char *fillc, char *penc, pointf *AF, int sides, int style) |
shape_kind | shapeOf (node_t *n) |
boolean | isPolygon (node_t *n) |
shape_desc * | find_user_shape (char *name) |
shape_desc * | bind_shape (char *name, node_t *np) |
#define ATTR_SET | ( | a, | |||
n | ) | ((a) && (*(agxget(n,a->index)) != '\0')) |
#define GET_PORT_BOX | ( | n, | |||
e | ) | ((n) == (e)->head ? ED_head_port(e).bp : ED_tail_port(e).bp) |
#define ISCTRL | ( | c | ) | ((c) == '{' || (c) == '}' || (c) == '|' || (c) == '<' || (c) == '>') |
#define RBCONST 12 |
#define RBCURVE .5 |
#define SPECIAL_CORNERS | ( | style | ) | ((style) & (ROUNDED | DIAGONALS | DOGEAR | TAB | FOLDER | BOX3D | COMPONENT)) |
shape_desc* bind_shape | ( | char * | name, | |
node_t * | np | |||
) |
Definition at line 2376 of file shapes.c.
References agget(), shape_desc::name, NULL, safefile(), and streq.
Referenced by common_init_node().
shape_desc* find_user_shape | ( | char * | name | ) |
Definition at line 687 of file shapes.c.
References ND_shape.
Referenced by attach_attrs_and_arrows().
Definition at line 375 of file shapes.c.
References assert, BOX3D, C, COMPONENT, DIAGONALS, DOGEAR, FALSE, FILLED, FOLDER, free(), gvrender_begin_context(), gvrender_beziercurve(), gvrender_end_context(), gvrender_polygon(), gvrender_polyline(), gvrender_set_fillcolor(), gvrender_set_pencolor(), N_GNEW, N_NEW, RBCONST, RBCURVE, ROUNDED, TAB, TRUE, pointf_s::x, and pointf_s::y.
Referenced by emit_clusters().
shape_kind shapeOf | ( | node_t * | n | ) |
Definition at line 667 of file shapes.c.
References epsf_init(), ND_shape, SH_EPSF, SH_POINT, SH_POLY, SH_RECORD, and SH_UNSET.
Referenced by common_init_node(), makeObstacle(), and makePoly().