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-2020 by PDFTron Systems 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 #ifndef SWIGHIDDEN
67  TRN_GeometryCollection m_impl;
68 #endif
69 
70 private:
71 
72 #ifndef SWIGHIDDEN
73  mutable bool m_owner;
74 #endif
75 };
76 
77 #include <Impl/GeometryCollection.inl>
78 } //end pdftron
79 } //end PDF
80 
81 
82 #endif //PDFTRON_H_CPPPDFGeometryCollection
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