cdrapp.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef CDRAPP_H_INCLUDED
  2. #define CDRAPP_H_INCLUDED
  3. #include "cdrapi.h"
  4. bool fill_red(corel *cdr);
  5. bool cql_OutlineColor(corel *cdr);
  6. bool cql_FillColor(corel *cdr);
  7. bool cql_SameSize(corel *cdr);
  8. bool Shapes_Filp(corel *cdr);
  9. bool Shapes_Filp(corel *cdr);
  10. bool Clear_Fill(corel *cdr);
  11. void CdrCopy_to_AdobeAI(corel *cdr);
  12. void AdobeAI_Copy_ImportCdr(corel *cdr);
  13. bool AutoMakeSelection(corel *cdr);
  14. bool Box_AutoGroup(corel *cdr, double exp = 0.0);
  15. bool BBox_DrawRectangle(corel *cdr, double exp = 0.0);
  16. void run_BoundaryGroup(corel *cdr);
  17. extern char infobuf[];
  18. extern bool debug_flg;
  19. #define GET_BOUNDING_BOX(box) \
  20. GetBoundingBox(&(box).x, &(box).y, &(box).w, &(box).h, false)
  21. #define ZERO_4PC 0, 0, 0, 0
  22. // 左下角坐标 x,y w,h 宽高
  23. typedef struct {
  24. double x;
  25. double y;
  26. double w;
  27. double h;
  28. } BoundingBox;
  29. bool isOverlapped(const BoundingBox &a, const BoundingBox &b);
  30. bool BoxGrouping(corel *cdr, IVGShapeRange *sr, IVGShapeRange *srs, double exp );
  31. #endif // CDRAPP_H_INCLUDED