smyrna_utils.h 1.2 KB

12345678910111213141516171819202122232425
  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 "smyrnadefs.h"
  12. #include <cgraph/cgraph.h>
  13. extern int l_int(void *obj, Agsym_t * attr, int def);
  14. extern float l_float(void *obj, Agsym_t * attr, float def);
  15. extern int getAttrBool(Agraph_t* g,void* obj,char* attr_name,int def);
  16. extern int getAttrInt(Agraph_t* g,void* obj,char* attr_name,int def);
  17. extern float getAttrFloat(Agraph_t* g,void* obj,char* attr_name,float def);
  18. extern char* getAttrStr(Agraph_t* g,void* obj,char* attr_name,char* def);
  19. void getcolorfromschema(const colorschemaset sc, float l, float maxl,
  20. glCompColor *c);
  21. extern glCompPoint getPointFromStr(const char *str);
  22. extern int point_in_polygon(glCompPoly_t *selPoly, glCompPoint p);