cdrapp.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_IsOnShape(corel *cdr);
  11. bool isIntWith(corel *cdr, IVGShape* s1 , IVGShape* s2);
  12. // 重新包装 创建物件函数
  13. #define ZERO_4PC 0, 0, 0, 0
  14. #define GET_BOUNDING_BOX(box) \
  15. GetBoundingBox(&(box).x, &(box).y, &(box).w, &(box).h, false)
  16. typedef struct {
  17. double x;
  18. double y;
  19. double w;
  20. double h;
  21. } BoundingBox;
  22. IVGShapePtr MakeEllipse(corel* cdr, double x, double y, double r);
  23. IVGShapePtr MakeEllipse(corel* cdr, IVGShapePtr s, double r);
  24. IVGShapePtr MakeRectangle(corel* cdr, double x, double y, double w, double h);
  25. IVGShapePtr MakeRectangle(corel* cdr, IVGShapePtr s, double w, double h);
  26. IVGShapePtr DrawLine(corel* cdr, double x1, double y1, double x2, double y2);
  27. #endif // CDRAPP_H_INCLUDED