All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeometryCollection.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7 
8 #ifndef PDFTRON_H_CPPPDFGeometryCollection
9 #define PDFTRON_H_CPPPDFGeometryCollection
10 #include <C/PDF/TRN_GeometryCollection.h>
11 #include <PDF/Point.h>
12 
13 #include <Common/BasicTypes.h>
14 #include <Common/UString.h>
15 #include <PDF/PDFDoc.h>
16 
17 namespace pdftron { namespace PDF {
18 
19 
25 {
26 public:
27  //enums:
28  enum SnappingMode {
34  };
37  GeometryCollection(TRN_GeometryCollection impl);
40 
41  void Destroy();
42 
43  //methods:
44 
53  Point SnapToNearest(double x, double y, UInt32 mode) const;
54 
64  Point SnapToNearestPixel(double x, double y, double dpi, UInt32 mode) const;
65 
66  //for xamarin use only
67  static GeometryCollection* CreateInternal(ptrdiff_t impl);
68  ptrdiff_t GetHandleInternal();
69 
70 
71 #ifndef SWIGHIDDEN
72  TRN_GeometryCollection m_impl;
73 #endif
74 
75 private:
76 
77 #ifndef SWIGHIDDEN
78  mutable bool m_owner;
79 #endif
80 };
81 
82 #include <Impl/GeometryCollection.inl>
83 } //end pdftron
84 } //end PDF
85 
86 
87 #endif //PDFTRON_H_CPPPDFGeometryCollection
static GeometryCollection * CreateInternal(ptrdiff_t impl)
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
Point SnapToNearest(double x, double y, UInt32 mode) const
GeometryCollection & operator=(const GeometryCollection &other)
Point SnapToNearestPixel(double x, double y, double dpi, UInt32 mode) const