cdrapp.h 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef CDRAPP_H_INCLUDED
  2. #define CDRAPP_H_INCLUDED
  3. #import "VGCoreAuto.tlb"
  4. #include "VGCoreAuto.tlh"
  5. #define corel VGCore::IVGApplication
  6. using namespace VGCore;
  7. void Call_CorelDRAW();
  8. bool polygon_gravity_dot(corel* cdr);
  9. bool Test_Intersect(corel* cdr);
  10. void test_IntersectsWith(corel* cdr);
  11. // 重新包装 创建物件函数
  12. #define ZERO_4PC 0, 0, 0, 0
  13. #define GET_BOUNDING_BOX(box) \
  14. GetBoundingBox(&(box).x, &(box).y, &(box).w, &(box).h, false)
  15. typedef struct {
  16. double x;
  17. double y;
  18. double w;
  19. double h;
  20. } BoundingBox;
  21. IVGShapePtr MakeEllipse(corel* cdr, double x, double y, double r);
  22. IVGShapePtr MakeEllipse(corel* cdr, IVGShapePtr s, double r);
  23. IVGShapePtr MakeRectangle(corel* cdr, double x, double y, double w, double h);
  24. IVGShapePtr MakeRectangle(corel* cdr, IVGShapePtr s, double w, double h);
  25. IVGShapePtr DrawLine(corel* cdr, double x1, double y1, double x2, double y2);
  26. #endif // CDRAPP_H_INCLUDED