patchwork.h 891 B

123456789101112131415161718192021222324252627282930313233
  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. #pragma once
  11. #include "render.h"
  12. #include <fdpgen/fdp.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. typedef struct {
  17. graph_t *parent;
  18. } rdata;
  19. #define RDATA(n) ((rdata*)(ND_alg(n)))
  20. #define SPARENT(n) (RDATA(n)->parent)
  21. extern void patchwork_layout(Agraph_t * g);
  22. extern void patchwork_cleanup(Agraph_t * g);
  23. extern void patchworkLayout(Agraph_t *g);
  24. #ifdef __cplusplus
  25. }
  26. #endif